Implement tree states & hierarchical state DB

This commit is contained in:
Michael Sproul
2023-06-19 10:14:47 +10:00
parent 2bb62b7f7d
commit 23db089a7a
193 changed files with 6093 additions and 5925 deletions

View File

@@ -44,8 +44,8 @@ impl StoreItem for PersistedDht {
DBColumn::DhtEnrs
}
fn as_store_bytes(&self) -> Vec<u8> {
rlp::encode_list(&self.enrs).to_vec()
fn as_store_bytes(&self) -> Result<Vec<u8>, StoreError> {
Ok(rlp::encode_list(&self.enrs).to_vec())
}
fn from_store_bytes(bytes: &[u8]) -> Result<Self, StoreError> {