convex
convex copied to clipboard
Use initial State as network ID
We should use the initial state Hash as the network ID when syncing Peers to test compatibility.
If a Peer creates its own local network, it will need to include its own public key in the state, which will guarantee a unique hash compared to the public network or a network created by other private peers.
I've added the initial state Hash to the Peer STATUS response to support this capability. Just need to ensure that relying parties check this appropriately.
@billbsing can you check that this is used and enforced correctly? Might want an integration test where a Peer tries to connect to another Network (should fail)