diff --git a/node/src/chain/consensus.rs b/node/src/chain/consensus.rs index bf0bd586be..5952c2962e 100644 --- a/node/src/chain/consensus.rs +++ b/node/src/chain/consensus.rs @@ -360,9 +360,9 @@ impl Operations for Executor { elapsed: Duration, ) -> Result<(), Error> { let db_key = match step_name { - StepName::Proposal => &MD_AVG_PROPOSAL[..], - StepName::Validation => &MD_AVG_VALIDATION[..], - StepName::Ratification => &MD_AVG_RATIFICATION[..], + StepName::Proposal => MD_AVG_PROPOSAL, + StepName::Validation => MD_AVG_VALIDATION, + StepName::Ratification => MD_AVG_RATIFICATION, }; let db = self.db.read().await; diff --git a/node/src/database/rocksdb.rs b/node/src/database/rocksdb.rs index 218935c3e6..ac8bc69d1d 100644 --- a/node/src/database/rocksdb.rs +++ b/node/src/database/rocksdb.rs @@ -42,11 +42,11 @@ const MAX_MEMPOOL_SIZE: usize = 64 * 1024 * 1024; // 64 MiB const DB_FOLDER_NAME: &str = "chain.db"; // List of supported metadata keys -pub const MD_HASH_KEY: &[u8; 8] = b"hash_key"; -pub const MD_STATE_ROOT_KEY: &[u8; 14] = b"state_hash_key"; -pub const MD_AVG_VALIDATION: &[u8; 19] = b"avg_validation_time"; -pub const MD_AVG_RATIFICATION: &[u8; 21] = b"avg_ratification_time"; -pub const MD_AVG_PROPOSAL: &[u8; 17] = b"avg_proposal_time"; +pub const MD_HASH_KEY: &[u8] = b"hash_key"; +pub const MD_STATE_ROOT_KEY: &[u8] = b"state_hash_key"; +pub const MD_AVG_VALIDATION: &[u8] = b"avg_validation_time"; +pub const MD_AVG_RATIFICATION: &[u8] = b"avg_ratification_time"; +pub const MD_AVG_PROPOSAL: &[u8] = b"avg_proposal_time"; #[derive(Clone)] pub struct Backend {