@@ -103,7 +103,8 @@ def run_test(self):
103
103
test_node .send_message (msg_block (blocks_h2 [0 ]))
104
104
white_node .send_message (msg_block (blocks_h2 [1 ]))
105
105
106
- [ x .sync_with_ping () for x in [test_node , white_node ] ]
106
+ for x in [test_node , white_node ]:
107
+ x .sync_with_ping ()
107
108
assert_equal (self .nodes [0 ].getblockcount (), 2 )
108
109
assert_equal (self .nodes [1 ].getblockcount (), 2 )
109
110
self .log .info ("First height 2 block accepted by both nodes" )
@@ -116,7 +117,8 @@ def run_test(self):
116
117
test_node .send_message (msg_block (blocks_h2f [0 ]))
117
118
white_node .send_message (msg_block (blocks_h2f [1 ]))
118
119
119
- [ x .sync_with_ping () for x in [test_node , white_node ] ]
120
+ for x in [test_node , white_node ]:
121
+ x .sync_with_ping ()
120
122
for x in self .nodes [0 ].getchaintips ():
121
123
if x ['hash' ] == blocks_h2f [0 ].hash :
122
124
assert_equal (x ['status' ], "headers-only" )
@@ -135,7 +137,8 @@ def run_test(self):
135
137
test_node .send_message (msg_block (blocks_h3 [0 ]))
136
138
white_node .send_message (msg_block (blocks_h3 [1 ]))
137
139
138
- [ x .sync_with_ping () for x in [test_node , white_node ] ]
140
+ for x in [test_node , white_node ]:
141
+ x .sync_with_ping ()
139
142
# Since the earlier block was not processed by node0, the new block
140
143
# can't be fully validated.
141
144
for x in self .nodes [0 ].getchaintips ():
0 commit comments