Skip to content

Commit

Permalink
Fix for header spam test
Browse files Browse the repository at this point in the history
  • Loading branch information
djaen committed May 17, 2019
1 parent 5f64147 commit d6883ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/functional/qtum_header_spam.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,13 +161,14 @@ def dos_protection_triggered_via_spam_on_same_height_test(self):
def dos_protection_triggered_via_spam_on_variable_height_test(self):
self.start_p2p_connection()

for i in range(1504):
for i in range(2055):
block_header = self._create_pos_header(self.node, self.staking_prevouts, self.node.getblockhash(self.node.getblockcount()-500+(i%500)))
block_header.rehash()
msg = msg_headers()
block_header.nNonce = i
msg.headers.extend([block_header])
self.p2p_node.send_message(msg)

self.p2p_node.wait_for_disconnect(timeout=5)


Expand Down

0 comments on commit d6883ef

Please sign in to comment.