mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-31 05:07:12 +00:00
Drop unused EthSpec generic from Stores (#9281)
Co-Authored-By: dapplion <35266934+dapplion@users.noreply.github.com>
This commit is contained in:
@@ -9,7 +9,7 @@ pub const CUSTODY_DB_KEY: Hash256 = Hash256::ZERO;
|
||||
|
||||
pub struct PersistedCustody(pub CustodyContextSsz);
|
||||
|
||||
pub fn load_custody_context<E: EthSpec, Hot: ItemStore<E>, Cold: ItemStore<E>>(
|
||||
pub fn load_custody_context<E: EthSpec, Hot: ItemStore, Cold: ItemStore>(
|
||||
store: Arc<HotColdDB<E, Hot, Cold>>,
|
||||
) -> Option<CustodyContextSsz> {
|
||||
let res: Result<Option<PersistedCustody>, _> =
|
||||
@@ -22,7 +22,7 @@ pub fn load_custody_context<E: EthSpec, Hot: ItemStore<E>, Cold: ItemStore<E>>(
|
||||
}
|
||||
|
||||
/// Attempt to persist the custody context object to `self.store`.
|
||||
pub fn persist_custody_context<E: EthSpec, Hot: ItemStore<E>, Cold: ItemStore<E>>(
|
||||
pub fn persist_custody_context<E: EthSpec, Hot: ItemStore, Cold: ItemStore>(
|
||||
store: Arc<HotColdDB<E, Hot, Cold>>,
|
||||
custody_context: CustodyContextSsz,
|
||||
) -> Result<(), store::Error> {
|
||||
|
||||
Reference in New Issue
Block a user