mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-23 06:44:35 +00:00
Fix failing tests (#4423)
* Get tests passing * Get benchmarks compiling * Fix EF withdrawals test * Remove unused deps * Fix tree_hash panic in tests * Fix slasher compilation * Fix ssz_generic test * Get more tests passing * Fix EF tests for real * Fix local testnet scripts
This commit is contained in:
@@ -628,6 +628,16 @@ impl<E: EthSpec, Hot: ItemStore<E>, Cold: ItemStore<E>> HotColdDB<E, Hot, Cold>
|
||||
.map(|payload| payload.is_some())
|
||||
}
|
||||
|
||||
/// Store an execution payload in the hot database.
|
||||
pub fn put_execution_payload(
|
||||
&self,
|
||||
block_root: &Hash256,
|
||||
execution_payload: &ExecutionPayload<E>,
|
||||
) -> Result<(), Error> {
|
||||
self.hot_db
|
||||
.do_atomically(vec![execution_payload.as_kv_store_op(*block_root)?])
|
||||
}
|
||||
|
||||
/// Determine whether a block exists in the database (hot *or* cold).
|
||||
pub fn block_exists(&self, block_root: &Hash256) -> Result<bool, Error> {
|
||||
Ok(self
|
||||
|
||||
Reference in New Issue
Block a user