Prune op pool on finalization

This commit is contained in:
Paul Hauner 2019-08-11 18:29:11 +10:00
parent 78db947e6e
commit 6150f0ae1a
No known key found for this signature in database
GPG Key ID: 303E4494BB28068C

View File

@ -1199,6 +1199,9 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
self.fork_choice
.process_finalization(&finalized_block, finalized_block_root)?;
self.op_pool
.prune_all(&self.head().beacon_state, &self.spec);
Ok(())
}
}