Commit 1b708b03 authored by DevRhodium2's avatar DevRhodium2

Test/Bug fixes.

parent 398712a7
......@@ -115,7 +115,7 @@ namespace BRhodium.Bitcoin.Features.Wallet.Helpers
"\"WalletId\" INTEGER NOT NULL, " +
"\"SpendingTransactionId\" INTEGER NOT NULL, " +
"\"Amount\" INTEGER NOT NULL," +
"\"DestinationAddress\" TEXT NOT NULL," +
"\"DestinationAddress\" TEXT NULL," +//OP_RETURN does not need address
"\"DestinationScriptPubKey\" TEXT NOT NULL" +
");";
using (var command = new SQLiteCommand(sql, dbConnection, transaction))
......
......@@ -212,8 +212,8 @@ namespace BRhodium.Bitcoin.Features.Wallet
}
else this.logger.LogTrace("New block follows the previously known block '{0}'.", this.walletTip);
this.walletTip = newTip;
this.walletManager.ProcessBlock(block, newTip);
this.walletTip = newTip;
this.logger.LogTrace("(-)");
}
......
......@@ -14,6 +14,7 @@ namespace BRhodium.Node.IntegrationTests.Transactions
And(a_sending_and_a_receiving_wallet);
And(some_funds_in_the_sending_wallet);
And(no_fund_in_the_receiving_wallet);
And(the_block_is_mined);
And(the_wallets_are_in_sync);
And(a_nulldata_transaction);
When(the_transaction_is_broadcasted);
......
......@@ -49,8 +49,10 @@ namespace BRhodium.Node.IntegrationTests.Transactions
this.senderNode = this.builder.CreateBRhodiumPowNode();
this.receiverNode = this.builder.CreateBRhodiumPowNode();
this.builder.StartAll();
this.senderNode.NotInIBD();
this.receiverNode.NotInIBD();
//this.senderNode.NotInIBD();
//this.receiverNode.NotInIBD();
this.senderNode.CreateRPCClient().AddNode(this.receiverNode.Endpoint, false);
this.receiverNode.CreateRPCClient().AddNode(this.senderNode.Endpoint, false);
}
private void a_sending_and_a_receiving_wallet()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment