@@ -29,6 +29,7 @@ def skip_test_if_missing_module(self):
29
29
self .skip_if_no_wallet ()
30
30
31
31
def run_test (self ):
32
+ self .log .info ("Setting up" )
32
33
# Mine some coins
33
34
self .nodes [0 ].generate (110 )
34
35
@@ -48,6 +49,7 @@ def run_test(self):
48
49
# - node[1] should pick one 0.5 UTXO and leave the rest
49
50
# - node[2] should pick one (1.0 + 0.5) UTXO group corresponding to a
50
51
# given address, and leave the rest
52
+ self .log .info ("Test sending transactions picks one UTXO group and leaves the rest" )
51
53
txid1 = self .nodes [1 ].sendtoaddress (self .nodes [0 ].getnewaddress (), 0.2 )
52
54
tx1 = self .nodes [1 ].getrawtransaction (txid1 , True )
53
55
# txid1 should have 1 input and 2 outputs
@@ -70,7 +72,7 @@ def run_test(self):
70
72
assert_approx (v [0 ], vexp = 0.2 , vspan = 0.0001 )
71
73
assert_approx (v [1 ], vexp = 1.3 , vspan = 0.0001 )
72
74
73
- # Test 'avoid partial if warranted, even if disabled'
75
+ self . log . info ( " Test avoiding partial spends if warranted, even if avoidpartialspends is disabled" )
74
76
self .sync_all ()
75
77
self .nodes [0 ].generate (1 )
76
78
# Nodes 1-2 now have confirmed UTXOs (letters denote destinations):
@@ -104,7 +106,7 @@ def run_test(self):
104
106
assert_equal (input_addrs [0 ], input_addrs [1 ])
105
107
# Node 2 enforces avoidpartialspends so needs no checking here
106
108
107
- # Test wallet option maxapsfee with Node 3
109
+ self . log . info ( " Test wallet option maxapsfee" )
108
110
addr_aps = self .nodes [3 ].getnewaddress ()
109
111
self .nodes [0 ].sendtoaddress (addr_aps , 1.0 )
110
112
self .nodes [0 ].sendtoaddress (addr_aps , 1.0 )
@@ -131,6 +133,7 @@ def run_test(self):
131
133
132
134
# Test wallet option maxapsfee with node 4, which sets maxapsfee
133
135
# 1 sat higher, crossing the threshold from non-grouped to grouped.
136
+ self .log .info ("Test wallet option maxapsfee threshold from non-grouped to grouped" )
134
137
addr_aps3 = self .nodes [4 ].getnewaddress ()
135
138
[self .nodes [0 ].sendtoaddress (addr_aps3 , 1.0 ) for _ in range (5 )]
136
139
self .nodes [0 ].generate (1 )
@@ -147,8 +150,7 @@ def run_test(self):
147
150
self .sync_all ()
148
151
self .nodes [0 ].generate (1 )
149
152
150
- # Fill node2's wallet with 10000 outputs corresponding to the same
151
- # scriptPubKey
153
+ self .log .info ("Fill a wallet with 10,000 outputs corresponding to the same scriptPubKey" )
152
154
for _ in range (5 ):
153
155
raw_tx = self .nodes [0 ].createrawtransaction ([{"txid" :"0" * 64 , "vout" :0 }], [{addr2 [0 ]: 0.05 }])
154
156
tx = FromHex (CTransaction (), raw_tx )
@@ -164,6 +166,7 @@ def run_test(self):
164
166
# Check that we can create a transaction that only requires ~100 of our
165
167
# utxos, without pulling in all outputs and creating a transaction that
166
168
# is way too big.
169
+ self .log .info ("Test creating txn that only requires ~100 of our UTXOs without pulling in all outputs" )
167
170
assert self .nodes [2 ].sendtoaddress (address = addr2 [0 ], amount = 5 )
168
171
169
172
0 commit comments