From a74c6207ed8208efde67d51378c5c21e6f27d60a Mon Sep 17 00:00:00 2001 From: Phuong Nguyen Date: Thu, 5 Sep 2024 15:15:26 +0900 Subject: [PATCH] Added near-fetch 0.5.1 to fix unreachable code issues on status.await --- chain-signatures/Cargo.lock | 4 ++-- chain-signatures/node/Cargo.toml | 2 +- chain-signatures/node/src/protocol/cryptography.rs | 2 ++ integration-tests/chain-signatures/Cargo.lock | 4 ++-- integration-tests/chain-signatures/Cargo.toml | 2 +- 5 files changed, 8 insertions(+), 6 deletions(-) diff --git a/chain-signatures/Cargo.lock b/chain-signatures/Cargo.lock index 112306b3d..84482337b 100644 --- a/chain-signatures/Cargo.lock +++ b/chain-signatures/Cargo.lock @@ -4141,9 +4141,9 @@ dependencies = [ [[package]] name = "near-fetch" -version = "0.5.0" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d883b3727a4cfa0d528f6bd19584b9339de21c57f5eb53def7e952fa9e0c58e8" +checksum = "a82f56751beeb2537a222f1df033c8063ed4f41cab7cf1ba89723601e5a307e9" dependencies = [ "base64 0.22.1", "near-account-id", diff --git a/chain-signatures/node/Cargo.toml b/chain-signatures/node/Cargo.toml index a82ffa3eb..4503d85f1 100644 --- a/chain-signatures/node/Cargo.toml +++ b/chain-signatures/node/Cargo.toml @@ -46,7 +46,7 @@ url = { version = "2.4.0", features = ["serde"] } near-account-id = "1.0.0" near-crypto = "0.23.0" -near-fetch = "0.5.0" +near-fetch = "0.5.1" near-lake-framework = { git = "https://github.com/near/near-lake-framework-rs", branch = "node/1.40-and-async-run" } near-lake-primitives = { git = "https://github.com/near/near-lake-framework-rs", branch = "node/1.40-and-async-run" } near-primitives = "0.23.0" diff --git a/chain-signatures/node/src/protocol/cryptography.rs b/chain-signatures/node/src/protocol/cryptography.rs index a052bb0f4..294a8242c 100644 --- a/chain-signatures/node/src/protocol/cryptography.rs +++ b/chain-signatures/node/src/protocol/cryptography.rs @@ -427,6 +427,8 @@ impl CryptographicProtocol for RunningState { // block height is up to date, such that they too can process signature requests. If they cannot // then they are considered unstable and should not be a part of signature generation this round. let stable = ctx.mesh().stable_participants().await; + tracing::trace!(?stable, "stable participants"); + let mut sign_queue = self.sign_queue.write().await; crate::metrics::SIGN_QUEUE_SIZE .with_label_values(&[my_account_id.as_str()]) diff --git a/integration-tests/chain-signatures/Cargo.lock b/integration-tests/chain-signatures/Cargo.lock index ed5444513..9fbdc8a08 100644 --- a/integration-tests/chain-signatures/Cargo.lock +++ b/integration-tests/chain-signatures/Cargo.lock @@ -4614,9 +4614,9 @@ dependencies = [ [[package]] name = "near-fetch" -version = "0.5.0" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d883b3727a4cfa0d528f6bd19584b9339de21c57f5eb53def7e952fa9e0c58e8" +checksum = "a82f56751beeb2537a222f1df033c8063ed4f41cab7cf1ba89723601e5a307e9" dependencies = [ "base64 0.22.1", "near-account-id", diff --git a/integration-tests/chain-signatures/Cargo.toml b/integration-tests/chain-signatures/Cargo.toml index 2f638cbc0..058ce29cc 100644 --- a/integration-tests/chain-signatures/Cargo.toml +++ b/integration-tests/chain-signatures/Cargo.toml @@ -35,7 +35,7 @@ k256 = { version = "0.13.1", features = ["sha256", "ecdsa", "serde"] } # near dependencies near-account-id = "1" near-crypto = "0.23.0" -near-fetch = "0.5.0" +near-fetch = "0.5.1" near-jsonrpc-client = "0.10.1" near-primitives = "0.23.0" near-lake-framework = { git = "https://github.com/near/near-lake-framework-rs", branch = "node/1.40" }