mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix(engine): return sync state back to Idle when hook finishes (#4847)
This commit is contained in:
@ -1743,6 +1743,10 @@ where
|
|||||||
self.sync_state_updater.update_sync_state(SyncState::Syncing)
|
self.sync_state_updater.update_sync_state(SyncState::Syncing)
|
||||||
}
|
}
|
||||||
EngineHookEvent::Finished(_) => {
|
EngineHookEvent::Finished(_) => {
|
||||||
|
// Hook with read-write access to the database has finished running, so engine
|
||||||
|
// can process new FCU/payload messages from CL again. It's safe to
|
||||||
|
// return `false` on `eth_syncing` request.
|
||||||
|
self.sync_state_updater.update_sync_state(SyncState::Idle);
|
||||||
// If the hook had read-write access to the database, it means that the engine
|
// If the hook had read-write access to the database, it means that the engine
|
||||||
// may have accumulated some buffered blocks.
|
// may have accumulated some buffered blocks.
|
||||||
if let Err(error) =
|
if let Err(error) =
|
||||||
|
|||||||
Reference in New Issue
Block a user