We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ebf650 commit 4bf1b1cCopy full SHA for 4bf1b1c
test/functional/wallet_balance.py
@@ -129,5 +129,17 @@ def run_test(self):
129
# getbalance with minconf=2 will show the new balance.
130
assert_equal(self.nodes[1].getbalance(minconf=2), Decimal('0'))
131
132
+ # check mempool transactions count for wallet unconfirmed balance after
133
+ # dynamically loading the wallet.
134
+ before = self.nodes[1].getunconfirmedbalance()
135
+ dst = self.nodes[1].getnewaddress()
136
+ self.nodes[1].unloadwallet('')
137
+ self.nodes[0].sendtoaddress(dst, 0.1)
138
+ self.sync_all()
139
+ self.nodes[1].loadwallet('')
140
+ after = self.nodes[1].getunconfirmedbalance()
141
+ assert_equal(before + Decimal('0.1'), after)
142
+
143
144
if __name__ == '__main__':
145
WalletTest().main()
0 commit comments