Skip to content

Commit

Permalink
chore(node): Upgrade blockstore and beetswap
Browse files Browse the repository at this point in the history
  • Loading branch information
oblique committed Apr 8, 2024
1 parent abea4ca commit 0a99f8c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 13 deletions.
9 changes: 4 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ resolver = "2"
members = ["cli", "node", "node-wasm", "proto", "rpc", "types"]

[workspace.dependencies]
blockstore = "0.3"
beetswap = { git = "https://github.com/eigerco/beetswap", rev = "1cdfff8" }
blockstore = "0.4"
lumina-node = { version = "0.1.0", path = "node" }
lumina-node-wasm = { version = "0.1.0", path = "node-wasm" }
celestia-proto = { version = "0.1.0", path = "proto" }
Expand All @@ -15,11 +16,11 @@ celestia-tendermint = { version = "0.32.1", default-features = false }
celestia-tendermint-proto = "0.32.1"

[patch.crates-io]
# This is a workaround.
# `lumina-node` depends on `beetswap`, which depends on `blockstore`.
# Because `beetswap` is outside of this workspace, cargo thinks that
# it depends on a different `blockstore` crate.
# Uncomment to apply local changes
#blockstore = { path = "../blockstore" }
#celestia-tendermint = { path = "../celestia-tendermint-rs/tendermint" }
#celestia-tendermint-proto = { path = "../celestia-tendermint-rs/proto" }
#nmt-rs = { path = "../nmt-rs" }

#[patch."https://github.com/eigerco/beetswap"]
#beetswap = { path = "../beetswap" }
3 changes: 2 additions & 1 deletion node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ libp2p = { workspace = true, features = [
] }

async-trait = "0.1.73"
beetswap = { git = "https://github.com/eigerco/beetswap", rev = "13f1a08" }
beetswap = { workspace = true }
cid = { version = "0.11.0", features = ["serde-codec"] }
dashmap = "5.5.3"
futures = "0.3.28"
Expand Down Expand Up @@ -67,6 +67,7 @@ libp2p = { workspace = true, features = [

[target.'cfg(target_arch = "wasm32")'.dependencies]
backoff = { version = "0.4.0", features = ["wasm-bindgen"] }
beetswap = { workspace = true, features = ["wasm-bindgen"] }
blockstore = { workspace = true, features = ["indexeddb"] }
celestia-types = { workspace = true, features = ["wasm-bindgen"] }
getrandom = { version = "0.2.10", features = ["js"] }
Expand Down
2 changes: 0 additions & 2 deletions node/src/p2p/shwap.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use std::sync::Arc;

use async_trait::async_trait;
use beetswap::multihasher::{Multihasher, MultihasherError};
use blockstore::block::CidError;
use celestia_tendermint_proto::Protobuf;
Expand Down Expand Up @@ -33,7 +32,6 @@ where
}
}

#[async_trait]
impl<S> Multihasher<MAX_MH_SIZE> for ShwapMultihasher<S>
where
S: Store + 'static,
Expand Down

0 comments on commit 0a99f8c

Please sign in to comment.