nearcore icon indicating copy to clipboard operation
nearcore copied to clipboard

fix: pytest network/peers_request

Open saketh-are opened this issue 7 months ago • 1 comments

Before #11321, the nonce 1 never expired. Now it is no longer usable to establish a connection:

network: bad nonce, disconnecting: nonce timestamp too distant in the future/past: got = 1970-01-01 0:00:01.0 +00:00:00, now_timestamp = 2024-07-05 10:23:19.959609591 +00:00:00, max_delta = 20m nonce=1 

Instead we should replicate the correct behavior to assign a nonce:

https://github.com/near/nearcore/blob/03a8b5d4a0e6df057a9531f5452c2dbc95ffa89c/chain/network/src/network_protocol/edge.rs#L130-L138

Fixes spec/network/peers_request.py.

saketh-are avatar Jul 05 '24 22:07 saketh-are