mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
Compare commits
2 Commits
2b7e9db827
...
6ea7a8c261
| Author | SHA1 | Date | |
|---|---|---|---|
| 6ea7a8c261 | |||
| 9f952ac2ed |
@ -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