mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-21 05:44:44 +00:00
update default persisted op pool deserialization
This commit is contained in:
@@ -258,8 +258,8 @@ impl<E: EthSpec> StoreItem for PersistedOperationPool<E> {
|
||||
|
||||
fn from_store_bytes(bytes: &[u8]) -> Result<Self, StoreError> {
|
||||
// Default deserialization to the latest variant.
|
||||
PersistedOperationPoolV15::from_ssz_bytes(bytes)
|
||||
.map(Self::V15)
|
||||
PersistedOperationPoolV20::from_ssz_bytes(bytes)
|
||||
.map(Self::V20)
|
||||
.map_err(Into::into)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user