@@ -112,10 +112,10 @@ def run_test(self):
112
112
def test_balances (* , fee_node_1 = 0 ):
113
113
# getbalance without any arguments includes unconfirmed transactions, but not untrusted transactions
114
114
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
116
116
# Same with minconf=0
117
117
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' ) )
119
119
# getbalance with a minconf incorrectly excludes coins that have been spent more recently than the minconf blocks ago
120
120
# TODO: fix getbalance tracking of coin spentness depth
121
121
assert_equal (self .nodes [0 ].getbalance (minconf = 1 ), Decimal ('0' ))
@@ -125,9 +125,9 @@ def test_balances(*, fee_node_1=0):
125
125
assert_equal (self .nodes [0 ].getbalances ()['mine' ]['untrusted_pending' ], Decimal ('60' ))
126
126
assert_equal (self .nodes [0 ].getwalletinfo ()["unconfirmed_balance" ], Decimal ('60' ))
127
127
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 )
131
131
132
132
test_balances (fee_node_1 = Decimal ('0.01' ))
133
133
0 commit comments