mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
Compare commits
5 Commits
6ea7a8c261
...
2b7e9db827
| Author | SHA1 | Date | |
|---|---|---|---|
| 2b7e9db827 | |||
| e9dcff4015 | |||
| 21e7c718ea | |||
| 8c6ea1ae7a | |||
| 9f952ac2ed |
@ -18,14 +18,13 @@ Building NanoReth from source requires Rust and Cargo to be installed:
|
||||
|
||||
The current state of the block files comprise of millions of small objects totalling over 20 Gigs and counting. The "requester pays" option means you will need a configured aws environment, and you could incur charges which varies according to destination (ec2 versus local).
|
||||
|
||||
1) this will backfill the existing blocks from HyperLiquid's EVM S3 bucket:
|
||||
1) this will backfill the existing blocks from Hyperliquid's EVM S3 bucket:
|
||||
|
||||
```shell
|
||||
aws s3 sync s3://hl-mainnet-evm-blocks/ ~/evm-blocks \
|
||||
--request-payer requester \
|
||||
--exact-timestamps \
|
||||
--size-only \
|
||||
--page-size 1000 \
|
||||
--only-show-errors
|
||||
```
|
||||
> consider using this [rust based s3 tool wrapper](https://github.com/wwwehr/hl-evm-block-sync) alternative to optimize your download experience
|
||||
@ -86,7 +85,7 @@ Testnet is supported since block 21304281.
|
||||
# Get testnet genesis at block 21304281
|
||||
$ cd ~
|
||||
$ git clone https://github.com/sprites0/hl-testnet-genesis
|
||||
$ git lfs pull
|
||||
$ git -C hl-testnet-genesis lfs pull
|
||||
$ zstd --rm -d ~/hl-testnet-genesis/*.zst
|
||||
|
||||
# Now return to where you have cloned this project to continue
|
||||
|
||||
@ -275,6 +275,7 @@ impl BlockIngest {
|
||||
let engine_api = node.auth_server_handle().http_client();
|
||||
let mut evm_map = erc20_contract_to_spot_token(node.chain_spec().chain_id()).await?;
|
||||
|
||||
const MINIMUM_TIMESTAMP: u64 = 1739849780;
|
||||
let current_block_timestamp: u64 = provider
|
||||
.block_by_number(head)
|
||||
.expect("Failed to fetch current block in db")
|
||||
@ -282,6 +283,8 @@ impl BlockIngest {
|
||||
.into_header()
|
||||
.timestamp();
|
||||
|
||||
let current_block_timestamp = current_block_timestamp.max(MINIMUM_TIMESTAMP);
|
||||
|
||||
info!("Current height {height}, timestamp {current_block_timestamp}");
|
||||
self.start_local_ingest_loop(height, current_block_timestamp).await;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user