ethereum / sharding

Sharding manager contract, and related software and tests
480 stars 105 forks source link

Shard fast sync protocol #18

Closed hwwhww closed 6 years ago

hwwhww commented 7 years ago

The previous fast sync procedure for simulation is a lazy simplified approach. Thanks to @vbuterin, the new approach applies more verifications of the recent collations and more reliable.

Wire protocol message

0x08 GetShardData

[+0x08: collationHash: B_32] Request for the shard chain state snapshot which contains collationHash of the required collation.

0x09 ShardData

[+0x09: stateSnapshot: B, collation: Collation] Reply to GetShardData. Reply must contain the compressed state snapshot and the head collation of the given state.

Shard fast sync algorithm

hwwhww commented 6 years ago

There's a new design: #26