Skip to content

hyperliquid-dex/hyper-evm-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HyperEVM sync

Proof of concept to execute all transactions from genesis for the entire HyperEVM. This should be enough to implement an archive node.

To replay, one can first sync all the historical blocks from s3, for example using

aws s3 sync --request-payer <REQUESTER> s3://hl-mainnet-evm-blocks ~/hl-mainnet-evm-blocks

One can also download specific blocks via the following command:

cargo run --release download-blocks -d ~/hl-mainnet-evm-blocks -s <STARTBLOCK> -e <ENDBLOCK>

To run from genesis, one can use the following sync-from-state command:

cargo run --release sync-from-state -b ~/hl-mainnet-evm-blocks -e <ENDBLOCK>

To run from a specific EvmState or AbciState (use --is-abci flag), use the following:

cargo run --release sync-from-state -b ~/hl-mainnet-evm-blocks -e <ENDBLOCK> -f <STATEFLN>

To take snapshots as the command goes, add the -s <SNAPSHOTDIR> and -c <CHUNKSIZE> arguments. The former specifies which directory the snapshots go into and the latter specifies how often a snapshot is taken. The default chunk size is 1000.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages