mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 02:49:55 +00:00
fix: Fix block number on start
This commit is contained in:
@ -184,6 +184,7 @@ impl HlNetworkBuilder {
|
||||
provider: ctx.provider().clone(),
|
||||
});
|
||||
let number = ctx.provider().last_block_number().unwrap_or(1);
|
||||
let number = std::cmp::max(number, 1);
|
||||
|
||||
ctx.task_executor()
|
||||
.spawn_critical("block import", async move {
|
||||
|
||||
Reference in New Issue
Block a user