5 Commits

Author SHA1 Message Date
2b7e9db827 Merge e9dcff4015 into 9f952ac2ed 2025-08-26 19:04:22 -07:00
e9dcff4015 readme nits 2025-08-26 19:04:18 -07:00
21e7c718ea Update README.md
Co-authored-by: sprites0 <lovelysprites@gmail.com>
2025-08-26 19:02:19 -07:00
8c6ea1ae7a Update README.md
Co-authored-by: sprites0 <lovelysprites@gmail.com>
2025-08-26 19:01:41 -07:00
9f952ac2ed fix: Prevent excessive file crawling when syncing the first block 2025-08-20 21:49:17 -04:00
2 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -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;