Browse Source

slabstore: fix a bug

ghassmo 4 years ago
parent
commit
1d0ffd2498
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/blockchain/slabstore.rs

+ 1 - 0
src/blockchain/slabstore.rs

@@ -18,6 +18,7 @@ impl SlabStore {
 
     pub fn get(&self, key: Vec<u8>) -> Result<Option<Vec<u8>>> {
         debug!(target: "SLABSTORE", "get value");
+        let key: u64 = deserialize(&key)?;
         let value = self.rocks.get(key)?;
         Ok(value)
     }