@@ -119,7 +119,7 @@ def run_test(self):
119
119
# Allow the block to mature
120
120
blocks = []
121
121
for i in range (NUM_BUFFER_BLOCKS_TO_GENERATE ):
122
- blocks .append (self .next_block ("maturitybuffer.{}" . format ( i ) ))
122
+ blocks .append (self .next_block (f "maturitybuffer.{ i } " ))
123
123
self .save_spendable_output ()
124
124
self .send_blocks (blocks )
125
125
@@ -151,8 +151,8 @@ def run_test(self):
151
151
if template .valid_in_block :
152
152
continue
153
153
154
- self .log .info ("Reject block with invalid tx: %s" , TxTemplate .__name__ )
155
- blockname = "for_invalid.%s" % TxTemplate .__name__
154
+ self .log .info (f "Reject block with invalid tx: { TxTemplate .__name__ } " )
155
+ blockname = f "for_invalid.{ TxTemplate .__name__ } "
156
156
badblock = self .next_block (blockname )
157
157
badtx = template .get_tx ()
158
158
if TxTemplate != invalid_txs .InputMissing :
@@ -1355,12 +1355,12 @@ def next_block(self, number, spend=None, additional_coinbase_value=0, script=CSc
1355
1355
1356
1356
# save the current tip so it can be spent by a later block
1357
1357
def save_spendable_output (self ):
1358
- self .log .debug ("saving spendable output %s" % self .tip .vtx [0 ])
1358
+ self .log .debug (f "saving spendable output { self .tip .vtx [0 ]} " )
1359
1359
self .spendable_outputs .append (self .tip )
1360
1360
1361
1361
# get an output that we previously marked as spendable
1362
1362
def get_spendable_output (self ):
1363
- self .log .debug ("getting spendable output %s" % self .spendable_outputs [0 ].vtx [0 ])
1363
+ self .log .debug (f "getting spendable output { self .spendable_outputs [0 ].vtx [0 ]} " )
1364
1364
return self .spendable_outputs .pop (0 ).vtx [0 ]
1365
1365
1366
1366
# move the tip back to a previous block
0 commit comments