diff --git a/Cargo.lock b/Cargo.lock index bd1269b3..15d99a5a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -751,9 +751,9 @@ dependencies = [ [[package]] name = "ed" version = "0.3.0" -source = "git+https://github.com/nomic-io/ed?rev=a657be856792039ff60c2f67e7920e38cd3acffc#a657be856792039ff60c2f67e7920e38cd3acffc" +source = "git+https://github.com/turbofish-org/ed?rev=a657be856792039ff60c2f67e7920e38cd3acffc#a657be856792039ff60c2f67e7920e38cd3acffc" dependencies = [ - "ed-derive 0.3.0 (git+https://github.com/nomic-io/ed?rev=a657be856792039ff60c2f67e7920e38cd3acffc)", + "ed-derive 0.3.0 (git+https://github.com/turbofish-org/ed?rev=a657be856792039ff60c2f67e7920e38cd3acffc)", "thiserror", ] @@ -771,7 +771,7 @@ dependencies = [ [[package]] name = "ed-derive" version = "0.3.0" -source = "git+https://github.com/nomic-io/ed?rev=a657be856792039ff60c2f67e7920e38cd3acffc#a657be856792039ff60c2f67e7920e38cd3acffc" +source = "git+https://github.com/turbofish-org/ed?rev=a657be856792039ff60c2f67e7920e38cd3acffc#a657be856792039ff60c2f67e7920e38cd3acffc" dependencies = [ "proc-macro2", "quote", @@ -2250,7 +2250,7 @@ checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" [[package]] name = "merk" version = "2.0.0" -source = "git+https://github.com/nomic-io/merk?rev=d6f0490993bcf88f786c5271091aa9a84ff2fe69#d6f0490993bcf88f786c5271091aa9a84ff2fe69" +source = "git+https://github.com/turbofish-org/merk?rev=058839b813bb373e724b7c9826030e6df1aec2cb#058839b813bb373e724b7c9826030e6df1aec2cb" dependencies = [ "colored", "ed 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -2426,7 +2426,7 @@ dependencies = [ "borsh", "cosmrs", "derive_more", - "ed 0.3.0 (git+https://github.com/nomic-io/ed?rev=a657be856792039ff60c2f67e7920e38cd3acffc)", + "ed 0.3.0 (git+https://github.com/turbofish-org/ed?rev=a657be856792039ff60c2f67e7920e38cd3acffc)", "ed25519-dalek", "educe", "flate2", diff --git a/Cargo.toml b/Cargo.toml index 55836221..856be5a7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ tendermint-rpc = { version = "0.38.0", features = [ ], optional = true } tendermint = { version = "0.38.0", optional = true } tendermint-proto = { version = "0.38.0" } -merk = { git = "https://github.com/nomic-io/merk", rev = "d6f0490993bcf88f786c5271091aa9a84ff2fe69", optional = true, default-features = false } +merk = { git = "https://github.com/turbofish-org/merk", rev = "058839b813bb373e724b7c9826030e6df1aec2cb", optional = true, default-features = false } orga-macros = { path = "macros", version = "0.3.1" } log = "0.4.17" hex-literal = "0.4.1" @@ -22,7 +22,7 @@ is_executable = { version = "1.0.1", optional = true } reqwest = { version = "0.11.16", features = ["blocking"], optional = true } flate2 = "1.0.22" tar = "0.4.38" -ed = { git = "https://github.com/nomic-io/ed", rev = "a657be856792039ff60c2f67e7920e38cd3acffc" } +ed = { git = "https://github.com/turbofish-org/ed", rev = "a657be856792039ff60c2f67e7920e38cd3acffc" } toml_edit = "0.22.9" prost = { version = "0.13.1" } home = { version = "0.5.4", optional = true } diff --git a/src/store/store.rs b/src/store/store.rs index 919cde45..5848611f 100644 --- a/src/store/store.rs +++ b/src/store/store.rs @@ -238,14 +238,14 @@ impl Read for Store { impl Write for Store { #[inline] fn put(&mut self, key: Vec, value: Vec) -> Result<()> { - // merk has a hard limit of 256 bytes for keys, but it does not create + // merk has a hard limit of 65535 bytes for keys, but it does not create // an error until comitting. we assert the key length here so that // writes will fail early rather than making the entire block fail. this // assertion can be removed if the merk key length limit is removed, or // if we instead check this statically using known encoding lengths via // ed. - if key.len() + self.prefix.len() >= 65535 { - return Err(Error::Store("Store keys must be < 65535 bytes".into())); + if key.len() + self.prefix.len() >= 65536 { + return Err(Error::Store("Store keys must be < 65536 bytes".into())); } let prefixed = concat(self.prefix.as_slice(), key.as_slice());