From 80a09f63acb4773df81fd3a0d8578fbfa01bd527 Mon Sep 17 00:00:00 2001 From: Ron Kuris Date: Tue, 28 Nov 2023 15:08:38 -0800 Subject: [PATCH] Remove test for edge key length differences (#388) --- firewood/src/proof.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/firewood/src/proof.rs b/firewood/src/proof.rs index b5b571c69..e101ff2fa 100644 --- a/firewood/src/proof.rs +++ b/firewood/src/proof.rs @@ -38,8 +38,6 @@ pub enum ProofError { InvalidProof, #[error("invalid edge keys")] InvalidEdgeKeys, - #[error("inconsisent edge keys")] - InconsistentEdgeKeys, #[error("node insertion error")] NodesInsertionError, #[error("node not in trie")] @@ -223,11 +221,6 @@ impl + Send> Proof { return Err(ProofError::InvalidEdgeKeys); } - // TODO(Hao): different length edge keys should be supported - if first_key.as_ref().len() != last_key.as_ref().len() { - return Err(ProofError::InconsistentEdgeKeys); - } - // Convert the edge proofs to edge trie paths. Then we can // have the same tree architecture with the original one. // For the first edge proof, non-existent proof is allowed.