File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -104,11 +104,10 @@ def self_transfer_requested():
104
104
block_missing_prev .hashPrevBlock = 123
105
105
block_missing_prev .solve ()
106
106
107
- # Attacker gets a DoS score of 10, not immediately disconnected, so we do it 10 times to get to 100
108
- for _ in range (10 ):
109
- assert_equal (len (self .nodes [0 ].getpeerinfo ()), 2 )
110
- with self .nodes [0 ].assert_debug_log (expected_msgs = ["AcceptBlock FAILED (prev-blk-not-found)" ]):
111
- attacker .send_message (msg_block (block_missing_prev ))
107
+ # Check that non-connecting block causes disconnect
108
+ assert_equal (len (self .nodes [0 ].getpeerinfo ()), 2 )
109
+ with self .nodes [0 ].assert_debug_log (expected_msgs = ["AcceptBlock FAILED (prev-blk-not-found)" ]):
110
+ attacker .send_message (msg_block (block_missing_prev ))
112
111
attacker .wait_for_disconnect (timeout = 5 )
113
112
114
113
You can’t perform that action at this time.
0 commit comments