mirror of
https://github.com/sigp/lighthouse.git
synced 2026-07-03 12:54:27 +00:00
Prune op pool on finalization
This commit is contained in:
@@ -1199,6 +1199,9 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
|
|||||||
self.fork_choice
|
self.fork_choice
|
||||||
.process_finalization(&finalized_block, finalized_block_root)?;
|
.process_finalization(&finalized_block, finalized_block_root)?;
|
||||||
|
|
||||||
|
self.op_pool
|
||||||
|
.prune_all(&self.head().beacon_state, &self.spec);
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user