Clone state ahead of block production (#4925)

* Clone state ahead of block production

* Add pruning and fix logging

* Don't hold 2 states in mem
This commit is contained in:
Michael Sproul
2023-11-30 13:49:35 +11:00
committed by GitHub
parent 43d98153d6
commit 547ed1de63
3 changed files with 117 additions and 21 deletions

View File

@@ -925,6 +925,7 @@ where
.map_err(|e| format!("Error initializing DataAvailabiltyChecker: {:?}", e))?,
),
kzg,
block_production_state: Arc::new(Mutex::new(None)),
};
let head = beacon_chain.head_snapshot();