@@ -112,10 +112,10 @@ def run_test(self):
112112 def test_balances (* , fee_node_1 = 0 ):
113113 # getbalance without any arguments includes unconfirmed transactions, but not untrusted transactions
114114 assert_equal (self .nodes [0 ].getbalance (), Decimal ('9.99' )) # change from node 0's send
115- assert_equal (self .nodes [1 ].getbalance (), Decimal ('30' ) - fee_node_1 ) # change from node 1's send
115+ assert_equal (self .nodes [1 ].getbalance (), Decimal ('0' ) ) # change from node 1's send
116116 # Same with minconf=0
117117 assert_equal (self .nodes [0 ].getbalance (minconf = 0 ), Decimal ('9.99' ))
118- assert_equal (self .nodes [1 ].getbalance (minconf = 0 ), Decimal ('30' ) - fee_node_1 )
118+ assert_equal (self .nodes [1 ].getbalance (minconf = 0 ), Decimal ('0' ) )
119119 # getbalance with a minconf incorrectly excludes coins that have been spent more recently than the minconf blocks ago
120120 # TODO: fix getbalance tracking of coin spentness depth
121121 assert_equal (self .nodes [0 ].getbalance (minconf = 1 ), Decimal ('0' ))
@@ -125,9 +125,9 @@ def test_balances(*, fee_node_1=0):
125125 assert_equal (self .nodes [0 ].getbalances ()['mine' ]['untrusted_pending' ], Decimal ('60' ))
126126 assert_equal (self .nodes [0 ].getwalletinfo ()["unconfirmed_balance" ], Decimal ('60' ))
127127
128- assert_equal (self .nodes [1 ].getunconfirmedbalance (), Decimal ('0' ) ) # Doesn't include output of node 0's send since it was spent
129- assert_equal (self .nodes [1 ].getbalances ()['mine' ]['untrusted_pending' ], Decimal ('0' ) )
130- assert_equal (self .nodes [1 ].getwalletinfo ()["unconfirmed_balance" ], Decimal ('0' ) )
128+ assert_equal (self .nodes [1 ].getunconfirmedbalance (), Decimal ('30' ) - fee_node_1 ) # Doesn't include output of node 0's send since it was spent
129+ assert_equal (self .nodes [1 ].getbalances ()['mine' ]['untrusted_pending' ], Decimal ('30' ) - fee_node_1 )
130+ assert_equal (self .nodes [1 ].getwalletinfo ()["unconfirmed_balance" ], Decimal ('30' ) - fee_node_1 )
131131
132132 test_balances (fee_node_1 = Decimal ('0.01' ))
133133
0 commit comments