Skip to content

Commit

Permalink
chore(deps): Update the Narwhal devnet pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
huitseeker committed Aug 8, 2022
1 parent ac4fef1 commit 4853877
Show file tree
Hide file tree
Showing 10 changed files with 261 additions and 120 deletions.
266 changes: 201 additions & 65 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion crates/sui-benchmark/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ sui-types = { path = "../sui-types" }
sui-sdk = { path = "../sui-sdk" }

move-core-types = { git = "https://github.com/move-language/move", rev = "79071528524f08b12e9abb84c1094d8e976aa17a", features = ["address20"] }
narwhal-node = { git = "https://github.com/MystenLabs/narwhal", rev = "e2231eb858d985a6ddedfcc64cc422893090be08", package = "node" }
narwhal-node = { git = "https://github.com/MystenLabs/narwhal", rev = "fd070584b57304a8c7b94ee7af656a9375fc2095", package = "node" }
sui-quorum-driver = { path = "../sui-quorum-driver" }
sui-node = { path = "../sui-node" }
workspace-hack = { path = "../workspace-hack"}
Expand Down
4 changes: 2 additions & 2 deletions crates/sui-config/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ multiaddr = "0.14.0"
once_cell = "1.11.0"
tracing = "0.1.36"

narwhal-config = { git = "https://github.com/MystenLabs/narwhal", rev = "e2231eb858d985a6ddedfcc64cc422893090be08", package = "config" }
narwhal-crypto = { git = "https://github.com/MystenLabs/narwhal", rev = "e2231eb858d985a6ddedfcc64cc422893090be08", package = "crypto" }
narwhal-config = { git = "https://github.com/MystenLabs/narwhal", rev = "fd070584b57304a8c7b94ee7af656a9375fc2095", package = "config" }
narwhal-crypto = { git = "https://github.com/MystenLabs/narwhal", rev = "fd070584b57304a8c7b94ee7af656a9375fc2095", package = "crypto" }
move-binary-format = { git = "https://github.com/move-language/move", rev = "79071528524f08b12e9abb84c1094d8e976aa17a" }
move-package = { git = "https://github.com/move-language/move", rev = "79071528524f08b12e9abb84c1094d8e976aa17a" }
move-core-types = { git = "https://github.com/move-language/move", rev = "79071528524f08b12e9abb84c1094d8e976aa17a", features = ["address20"] }
Expand Down
13 changes: 7 additions & 6 deletions crates/sui-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,14 @@ move-vm-runtime = { git = "https://github.com/move-language/move", rev = "790715
typed-store = { git = "https://github.com/MystenLabs/mysten-infra", rev = "123c9e40b529315e1c1d91a54fb717111c3e349c"}
mysten-network = { git = "https://github.com/MystenLabs/mysten-infra", rev = "123c9e40b529315e1c1d91a54fb717111c3e349c" }

narwhal-config = { git = "https://github.com/MystenLabs/narwhal", rev = "e2231eb858d985a6ddedfcc64cc422893090be08", package = "config" }
narwhal-consensus = { git = "https://github.com/MystenLabs/narwhal", rev = "e2231eb858d985a6ddedfcc64cc422893090be08", package = "consensus" }
narwhal-crypto = { git = "https://github.com/MystenLabs/narwhal", rev = "e2231eb858d985a6ddedfcc64cc422893090be08", package = "crypto", features=["copy_key"]}
narwhal-executor = { git = "https://github.com/MystenLabs/narwhal", rev = "e2231eb858d985a6ddedfcc64cc422893090be08", package = "executor" }
narwhal-types = { git = "https://github.com/MystenLabs/narwhal", rev = "e2231eb858d985a6ddedfcc64cc422893090be08", package = "types" }
narwhal-node = { git = "https://github.com/MystenLabs/narwhal", rev = "e2231eb858d985a6ddedfcc64cc422893090be08", package = "node" }
narwhal-config = { git = "https://github.com/MystenLabs/narwhal", rev = "fd070584b57304a8c7b94ee7af656a9375fc2095", package = "config" }
narwhal-consensus = { git = "https://github.com/MystenLabs/narwhal", rev = "fd070584b57304a8c7b94ee7af656a9375fc2095", package = "consensus" }
narwhal-crypto = { git = "https://github.com/MystenLabs/narwhal", rev = "fd070584b57304a8c7b94ee7af656a9375fc2095", package = "crypto", features=["copy_key"]}
narwhal-executor = { git = "https://github.com/MystenLabs/narwhal", rev = "fd070584b57304a8c7b94ee7af656a9375fc2095", package = "executor" }
narwhal-types = { git = "https://github.com/MystenLabs/narwhal", rev = "fd070584b57304a8c7b94ee7af656a9375fc2095", package = "types" }
narwhal-node = { git = "https://github.com/MystenLabs/narwhal", rev = "fd070584b57304a8c7b94ee7af656a9375fc2095", package = "node" }
workspace-hack = { path = "../workspace-hack"}
thiserror = "1.0.32"

[dev-dependencies]
clap = { version = "3.1.17", features = ["derive"] }
Expand Down
13 changes: 3 additions & 10 deletions crates/sui-core/src/authority.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1518,7 +1518,7 @@ impl ExecutionState for AuthorityState {
_consensus_output: &narwhal_consensus::ConsensusOutput,
consensus_index: ExecutionIndices,
transaction: Self::Transaction,
) -> Result<(Self::Outcome, Option<narwhal_config::Committee>), Self::Error> {
) -> Result<Self::Outcome, Self::Error> {
self.metrics.total_consensus_txns.inc();
match transaction {
ConsensusTransaction::UserTransaction(certificate) => {
Expand All @@ -1541,7 +1541,7 @@ impl ExecutionState for AuthorityState {

// TODO: This return time is not ideal.
// TODO [2533]: edit once integrating Narwhal reconfiguration
Ok((Vec::default(), None))
Ok(Vec::default())
}
ConsensusTransaction::Checkpoint(fragment) => {
let seq = consensus_index;
Expand Down Expand Up @@ -1570,7 +1570,7 @@ impl ExecutionState for AuthorityState {
// TODO: This return time is not ideal. The authority submitting the checkpoint fragment
// is not expecting any reply.
// TODO [2533]: edit once integrating Narwhal reconfiguration
Ok((Vec::default(), None))
Ok(Vec::default())
}
}
}
Expand Down Expand Up @@ -1599,11 +1599,4 @@ impl ExecutionStateError for FragmentInternalError {
Self::Retry(..) => true,
}
}

fn to_string(&self) -> String {
match self {
Self::Error(sui_error) => format!("Failed to process checkpoint fragment {sui_error}"),
Self::Retry(fragment) => format!("Failed to sequence checkpoint fragment {fragment:?}"),
}
}
}
4 changes: 3 additions & 1 deletion crates/sui-core/src/checkpoints/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,11 @@ pub trait ConsensusSender: Send + Sync + 'static {
fn send_to_consensus(&self, fragment: CheckpointFragment) -> Result<(), SuiError>;
}

#[derive(Debug)]
#[derive(Debug, thiserror::Error)]
pub enum FragmentInternalError {
#[error("Error processing fragment{0}")]
Error(SuiError),
#[error("Error processing fragment, retrying")]
Retry(Box<CheckpointFragment>),
}

Expand Down
2 changes: 1 addition & 1 deletion crates/sui-tool/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ futures = "0.3.21"
rocksdb = "0.18.0"
typed-store = { git = "https://github.com/MystenLabs/mysten-infra", rev = "123c9e40b529315e1c1d91a54fb717111c3e349c"}
tempfile = "3.3.0"
narwhal-executor = { git = "https://github.com/MystenLabs/narwhal", rev = "e2231eb858d985a6ddedfcc64cc422893090be08", package = "executor" }
narwhal-executor = { git = "https://github.com/MystenLabs/narwhal", rev = "fd070584b57304a8c7b94ee7af656a9375fc2095", package = "executor" }
serde_with = { version = "1.14.0", features = ["hex"] }
sui-storage = { path = "../sui-storage" }
serde = { version = "1.0.141", features = ["derive"] }
Expand Down
4 changes: 2 additions & 2 deletions crates/sui-types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ move-disassembler = { git = "https://github.com/move-language/move", rev = "7907
move-ir-types = { git = "https://github.com/move-language/move", rev = "79071528524f08b12e9abb84c1094d8e976aa17a" }
move-vm-types = { git = "https://github.com/move-language/move", rev = "79071528524f08b12e9abb84c1094d8e976aa17a" }

narwhal-executor = { git = "https://github.com/MystenLabs/narwhal", rev = "e2231eb858d985a6ddedfcc64cc422893090be08", package = "executor" }
narwhal-crypto = { git = "https://github.com/MystenLabs/narwhal", rev = "e2231eb858d985a6ddedfcc64cc422893090be08", package = "crypto" }
narwhal-executor = { git = "https://github.com/MystenLabs/narwhal", rev = "fd070584b57304a8c7b94ee7af656a9375fc2095", package = "executor" }
narwhal-crypto = { git = "https://github.com/MystenLabs/narwhal", rev = "fd070584b57304a8c7b94ee7af656a9375fc2095", package = "crypto" }
workspace-hack = { path = "../workspace-hack"}

[dev-dependencies]
Expand Down
4 changes: 0 additions & 4 deletions crates/sui-types/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -457,10 +457,6 @@ impl ExecutionStateError for SuiError {
| Self::GenericAuthorityError { .. }
)
}

fn to_string(&self) -> String {
ToString::to_string(&self)
}
}

type BoxError = Box<dyn std::error::Error + Send + Sync + 'static>;
Expand Down
Loading

0 comments on commit 4853877

Please sign in to comment.