Suzuka Oneshot Bootstrap Mode #469
l-monninger
started this conversation in
Ideas
Replies: 1 comment
-
The state proof contains the JMT of all Tx since the beginning. Calculating the Merkle tree with the Tx in the db will take time, and I'm not sure, it's enough. The account ledger state is not part of the state proof. So even if the Merkle tree is correct, we can't be sure the account ledger is valid without re-excuting all the block from the beginning. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
As an alternative to the p2p with verification syncing discussed in #468 and the RFC linked therein, we can perhaps define a simpler version that precludes light running modes, but still allows trustless bootstrapping. This would be to download the entirety of state as a file, then populate the Merkle tree offline, verify its integrity, and check it matches the state root on-chain. This ensures the Aptos state is correct.
Currently, the main challenge here would ensuring all state in Aptos DB is verifiable via the currently available JMT. This is also, arguably, the main challenge in #468 , so it's unclear that the implementation time gained would be significant.
Threats
Beta Was this translation helpful? Give feedback.
All reactions