File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ def run_test(self):
135
135
block .nVersion = 3
136
136
block .solve ()
137
137
138
- with self .nodes [0 ].assert_debug_log (expected_msgs = ['{ }, bad-version(0x00000003)'. format ( block . hash ) ]):
138
+ with self .nodes [0 ].assert_debug_log (expected_msgs = [f' { block . hash } , bad-version(0x00000003)' ]):
139
139
peer .send_and_ping (msg_block (block ))
140
140
assert_equal (int (self .nodes [0 ].getbestblockhash (), 16 ), tip )
141
141
peer .sync_with_ping ()
@@ -173,8 +173,7 @@ def run_test(self):
173
173
block .hashMerkleRoot = block .calc_merkle_root ()
174
174
block .solve ()
175
175
176
- with self .nodes [0 ].assert_debug_log (expected_msgs = ['CheckInputScripts on {} failed with {}' .format (
177
- block .vtx [- 1 ].hash , expected_cltv_reject_reason )]):
176
+ with self .nodes [0 ].assert_debug_log (expected_msgs = [f'CheckInputScripts on { block .vtx [- 1 ].hash } failed with { expected_cltv_reject_reason } ' ]):
178
177
peer .send_and_ping (msg_block (block ))
179
178
assert_equal (int (self .nodes [0 ].getbestblockhash (), 16 ), tip )
180
179
peer .sync_with_ping ()
You can’t perform that action at this time.
0 commit comments