mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-30 20:57:10 +00:00
Merge remote-tracking branch 'origin/payload-envelope-db' into gloas-data-availability-checker
This commit is contained in:
@@ -1301,6 +1301,13 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
|
||||
Ok(self.store.get_blinded_block(block_root)?)
|
||||
}
|
||||
|
||||
pub fn get_payload_envelope(
|
||||
&self,
|
||||
block_root: &Hash256,
|
||||
) -> Result<Option<SignedExecutionPayloadEnvelope<T::EthSpec>>, Error> {
|
||||
Ok(self.store.get_payload_envelope(block_root)?)
|
||||
}
|
||||
|
||||
/// Return the status of a block as it progresses through the various caches of the beacon
|
||||
/// chain. Used by sync to learn the status of a block and prevent repeated downloads /
|
||||
/// processing attempts.
|
||||
|
||||
@@ -773,6 +773,7 @@ impl<E: EthSpec, Hot: ItemStore<E>, Cold: ItemStore<E>> BackgroundMigrator<E, Ho
|
||||
StoreOp::DeleteBlock(block_root),
|
||||
StoreOp::DeleteExecutionPayload(block_root),
|
||||
StoreOp::DeleteBlobs(block_root),
|
||||
StoreOp::DeletePayloadEnvelope(block_root),
|
||||
StoreOp::DeleteSyncCommitteeBranch(block_root),
|
||||
]
|
||||
})
|
||||
|
||||
@@ -106,8 +106,8 @@ fn check_db_columns() {
|
||||
let current_columns: Vec<&'static str> = DBColumn::iter().map(|c| c.as_str()).collect();
|
||||
let expected_columns = vec![
|
||||
"bma", "blk", "blb", "bdc", "bdi", "ste", "hsd", "hsn", "bsn", "bsd", "bss", "bs3", "bcs",
|
||||
"bst", "exp", "bch", "opo", "etc", "frk", "pkc", "brp", "bsx", "bsr", "bbx", "bbr", "bhr",
|
||||
"brm", "dht", "cus", "otb", "bhs", "olc", "lcu", "scb", "scm", "dmy",
|
||||
"bst", "exp", "pay", "bch", "opo", "etc", "frk", "pkc", "brp", "bsx", "bsr", "bbx", "bbr",
|
||||
"bhr", "brm", "dht", "cus", "otb", "bhs", "olc", "lcu", "scb", "scm", "dmy",
|
||||
];
|
||||
assert_eq!(expected_columns, current_columns);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user