oasisprotocol / oasis-core

Performant and Confidentiality-Preserving Smart Contracts + Blockchains
https://oasisprotocol.org
Apache License 2.0
330 stars 107 forks source link

Separate storage checkpoint sync p2p protocol #5751

Open kostko opened 6 days ago

kostko commented 6 days ago

Currently both runtime checkpoint sync and block sync use the same p2p protocol. We should separate the two to support different parameters and better discovery as there may be less nodes available that expose checkpoints.

This should be done in a backwards-compatible manner where both protocols are advertised and used, with the new protocol being prioritized. Then the old protocol can slowly be removed.