mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 01:05:47 +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> {
|
fn from_store_bytes(bytes: &[u8]) -> Result<Self, StoreError> {
|
||||||
// Default deserialization to the latest variant.
|
// Default deserialization to the latest variant.
|
||||||
PersistedOperationPoolV15::from_ssz_bytes(bytes)
|
PersistedOperationPoolV20::from_ssz_bytes(bytes)
|
||||||
.map(Self::V15)
|
.map(Self::V20)
|
||||||
.map_err(Into::into)
|
.map_err(Into::into)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user