Skip to content

Commit

Permalink
Fix(controlled_edge_nonce) Increase nonce above 1000 (#3209)
Browse files Browse the repository at this point in the history
Currently we use as an heuristic edge nonce increase of at most
1000. This test detects that a node doesn't accept higher increases,
i.e. nonce should be > 1000.

Fixes #3166 

Test plan
========

controlled_edge_nonce.py should pass
  • Loading branch information
mfornet authored Aug 19, 2020
1 parent 0cb94ea commit fc300da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytest/tests/sanity/controlled_edge_nonce.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async def main():

# First handshake attempt. Should fail with Genesis Mismatch
handshake = create_handshake(my_key_pair_nacl, nodes[0].node_key.pk, 12345)
handshake.Handshake.edge_info.nonce = 5
handshake.Handshake.edge_info.nonce = 1505
sign_handshake(my_key_pair_nacl, handshake.Handshake)

await conn.send(handshake)
Expand Down

0 comments on commit fc300da

Please sign in to comment.