[INFO] cloning repository https://github.com/OrDex78/vela-network
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/OrDex78/vela-network" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FOrDex78%2Fvela-network", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FOrDex78%2Fvela-network'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] b21e0f52d08ef0aa2c919941d5ac0c005d56e220
[INFO] checking OrDex78/vela-network against eca445e5ae4a6679cc27d3a09106ce245e13a5a6 for pr-162478
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FOrDex78%2Fvela-network" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/OrDex78/vela-network
[INFO] finished tweaking git repo https://github.com/OrDex78/vela-network
[INFO] tweaked toml for git repo https://github.com/OrDex78/vela-network written to /workspace/builds/worker-7-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/OrDex78/vela-network on toolchain eca445e5ae4a6679cc27d3a09106ce245e13a5a6
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+eca445e5ae4a6679cc27d3a09106ce245e13a5a6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/OrDex78/vela-network already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+eca445e5ae4a6679cc27d3a09106ce245e13a5a6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded multihash v0.19.4
[INFO] [stderr]   Downloaded no_std_io2 v0.8.1
[INFO] [stderr]   Downloaded rustls v0.23.39
[INFO] [stderr]   Downloaded tokio v1.52.1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:8683fc1fc2eb5c9ac98e0d076ab094b2ffac7f99da555d2b6a2e27f346de2ec7" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 586223ba509070cc76f1123b81d7d8442eb213fd1e30105a8b14c2fd976ab7b6
[INFO] running `Command { std: "docker" "start" "586223ba509070cc76f1123b81d7d8442eb213fd1e30105a8b14c2fd976ab7b6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "586223ba509070cc76f1123b81d7d8442eb213fd1e30105a8b14c2fd976ab7b6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "586223ba509070cc76f1123b81d7d8442eb213fd1e30105a8b14c2fd976ab7b6" "/opt/rustwide/cargo-home/bin/cargo" "+eca445e5ae4a6679cc27d3a09106ce245e13a5a6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "586223ba509070cc76f1123b81d7d8442eb213fd1e30105a8b14c2fd976ab7b6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "586223ba509070cc76f1123b81d7d8442eb213fd1e30105a8b14c2fd976ab7b6" "/opt/rustwide/cargo-home/bin/cargo" "+eca445e5ae4a6679cc27d3a09106ce245e13a5a6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.185
[INFO] [stderr]     Checking critical-section v1.2.0
[INFO] [stderr]    Compiling zeroize_derive v1.4.3
[INFO] [stderr]     Checking futures-util v0.3.32
[INFO] [stderr]     Checking zerofrom v0.1.7
[INFO] [stderr]     Checking serde_core v1.0.228
[INFO] [stderr]    Compiling curve25519-dalek v4.1.3
[INFO] [stderr]    Compiling curve25519-dalek-derive v0.1.1
[INFO] [stderr]     Checking digest v0.10.7
[INFO] [stderr]    Compiling pin-project-internal v1.1.11
[INFO] [stderr]     Checking data-encoding v2.10.0
[INFO] [stderr]     Checking unsigned-varint v0.8.0
[INFO] [stderr]     Checking signature v2.2.0
[INFO] [stderr]     Checking quick-protobuf v0.8.1
[INFO] [stderr]     Checking once_cell v1.21.4
[INFO] [stderr]     Checking no_std_io2 v0.8.1
[INFO] [stderr]    Compiling match-lookup v0.1.2
[INFO] [stderr]     Checking yoke v0.8.2
[INFO] [stderr]     Checking sha2 v0.10.9
[INFO] [stderr]     Checking hmac v0.12.1
[INFO] [stderr]     Checking tracing-core v0.1.36
[INFO] [stderr]     Checking const-str v0.4.3
[INFO] [stderr]     Checking zerovec v0.11.6
[INFO] [stderr]     Checking zerotrie v0.2.4
[INFO] [stderr]     Checking hkdf v0.12.4
[INFO] [stderr]     Checking multihash v0.19.4
[INFO] [stderr]     Checking base-x v0.2.11
[INFO] [stderr]     Checking bs58 v0.5.1
[INFO] [stderr]     Checking web-time v1.1.0
[INFO] [stderr]     Checking unsigned-varint v0.7.2
[INFO] [stderr]     Checking base256emoji v1.0.2
[INFO] [stderr]     Checking futures-timer v3.0.3
[INFO] [stderr]    Compiling aws-lc-rs v1.16.3
[INFO] [stderr]    Compiling nix v0.30.1
[INFO] [stderr]     Checking thiserror v1.0.69
[INFO] [stderr]     Checking netlink-packet-core v0.8.1
[INFO] [stderr]     Checking zeroize v1.8.2
[INFO] [stderr]     Checking hashbrown v0.17.0
[INFO] [stderr]     Checking hashlink v0.10.0
[INFO] [stderr]    Compiling libp2p-swarm-derive v0.35.1
[INFO] [stderr]     Checking rustls-pki-types v1.14.0
[INFO] [stderr]    Compiling rustls v0.23.39
[INFO] [stderr]     Checking tracing v0.1.44
[INFO] [stderr]     Checking crossbeam-epoch v0.9.18
[INFO] [stderr]    Compiling data-encoding-macro-internal v0.1.17
[INFO] [stderr]    Compiling enum-as-inner v0.6.1
[INFO] [stderr]     Checking tinystr v0.8.3
[INFO] [stderr]     Checking potential_utf v0.1.5
[INFO] [stderr]     Checking icu_collections v2.2.0
[INFO] [stderr]     Checking pin-project v1.1.11
[INFO] [stderr]     Checking indexmap v2.14.0
[INFO] [stderr]     Checking event-listener v5.4.1
[INFO] [stderr]     Checking ahash v0.8.12
[INFO] [stderr]     Checking crossbeam-channel v0.5.15
[INFO] [stderr]    Compiling snow v0.9.6
[INFO] [stderr]     Checking icu_locale_core v2.2.0
[INFO] [stderr]     Checking data-encoding-macro v0.1.19
[INFO] [stderr]     Checking multibase v0.9.2
[INFO] [stderr]     Checking nohash-hasher v0.2.0
[INFO] [stderr]    Compiling jobserver v0.1.34
[INFO] [stderr]     Checking tagptr v0.2.0
[INFO] [stderr]    Compiling parking_lot_core v0.8.6
[INFO] [stderr]     Checking instant v0.1.13
[INFO] [stderr]     Checking resolv-conf v0.7.6
[INFO] [stderr]     Checking rustls-native-certs v0.8.3
[INFO] [stderr]     Checking hashbrown v0.14.5
[INFO] [stderr]     Checking hex_fmt v0.3.0
[INFO] [stderr]     Checking iri-string v0.7.12
[INFO] [stderr]     Checking axum-core v0.5.6
[INFO] [stderr]     Checking tracing-log v0.2.0
[INFO] [stderr]    Compiling clap_derive v4.6.1
[INFO] [stderr]     Checking event-listener-strategy v0.5.4
[INFO] [stderr]     Checking matchit v0.8.4
[INFO] [stderr]     Checking async-channel v2.5.0
[INFO] [stderr]     Checking tracing-subscriber v0.3.23
[INFO] [stderr]    Compiling cc v1.2.60
[INFO] [stderr]     Checking hashlink v0.9.1
[INFO] [stderr]     Checking parking_lot_core v0.9.12
[INFO] [stderr]     Checking errno v0.3.14
[INFO] [stderr]     Checking mio v1.2.0
[INFO] [stderr]     Checking socket2 v0.6.3
[INFO] [stderr]     Checking getrandom v0.2.17
[INFO] [stderr]     Checking getrandom v0.3.4
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]     Checking signal-hook-registry v1.4.8
[INFO] [stderr]     Checking rand_core v0.9.5
[INFO] [stderr]     Checking parking_lot v0.12.5
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking getrandom v0.4.2
[INFO] [stderr]     Checking netlink-packet-route v0.28.0
[INFO] [stderr]     Checking socket2 v0.5.10
[INFO] [stderr]     Checking rand_chacha v0.9.0
[INFO] [stderr]     Checking uuid v1.23.1
[INFO] [stderr]     Checking tokio v1.52.1
[INFO] [stderr]     Checking icu_provider v2.2.0
[INFO] [stderr]     Checking rand v0.8.6
[INFO] [stderr]     Checking rand v0.9.4
[INFO] [stderr]     Checking moka v0.12.15
[INFO] [stderr]     Checking parking_lot v0.11.2
[INFO] [stderr]     Checking icu_properties v2.2.0
[INFO] [stderr]     Checking icu_normalizer v2.2.0
[INFO] [stderr]     Checking x25519-dalek v2.0.1
[INFO] [stderr]     Checking fs2 v0.4.3
[INFO] [stderr]    Compiling cmake v0.1.58
[INFO] [stderr]     Checking sled v0.34.7
[INFO] [stderr]    Compiling aws-lc-sys v0.40.0
[INFO] [stderr]    Compiling ring v0.17.14
[INFO] [stderr]    Compiling blake3 v1.8.4
[INFO] [stderr]     Checking clap v4.6.1
[INFO] [stderr]     Checking serde v1.0.228
[INFO] [stderr]     Checking serde_json v1.0.149
[INFO] [stderr]     Checking serde_path_to_error v0.1.20
[INFO] [stderr]     Checking futures-executor v0.3.32
[INFO] [stderr]     Checking asynchronous-codec v0.7.0
[INFO] [stderr]     Checking futures v0.3.32
[INFO] [stderr]     Checking quick-protobuf-codec v0.3.1
[INFO] [stderr]     Checking rw-stream-sink v0.4.0
[INFO] [stderr]     Checking multistream-select v0.13.0
[INFO] [stderr]     Checking yamux v0.12.1
[INFO] [stderr]     Checking ed25519 v2.2.3
[INFO] [stderr]     Checking yamux v0.13.10
[INFO] [stderr]     Checking serde_urlencoded v0.7.1
[INFO] [stderr]     Checking idna_adapter v1.2.1
[INFO] [stderr]     Checking ed25519-dalek v2.2.0
[INFO] [stderr]     Checking idna v1.1.0
[INFO] [stderr]     Checking bincode v1.3.3
[INFO] [stderr]     Checking chrono v0.4.44
[INFO] [stderr]     Checking libp2p-identity v0.2.13
[INFO] [stderr]     Checking url v2.5.8
[INFO] [stderr]     Checking multiaddr v0.18.2
[INFO] [stderr]     Checking libp2p-core v0.43.2
[INFO] [stderr]     Checking libp2p-yamux v0.47.0
[INFO] [stderr]     Checking libp2p-noise v0.46.1
[INFO] [stderr]     Checking tokio-util v0.7.18
[INFO] [stderr]     Checking netlink-sys v0.8.8
[INFO] [stderr]     Checking libp2p-swarm v0.47.1
[INFO] [stderr]     Checking hickory-proto v0.25.2
[INFO] [stderr]     Checking tower v0.5.3
[INFO] [stderr]     Checking tokio-stream v0.1.18
[INFO] [stderr]     Checking netlink-proto v0.12.0
[INFO] [stderr]     Checking tokio-test v0.4.5
[INFO] [stderr]     Checking rtnetlink v0.20.0
[INFO] [stderr]     Checking tower-http v0.6.8
[INFO] [stderr]     Checking h2 v0.4.13
[INFO] [stderr]     Checking if-watch v3.2.2
[INFO] [stderr]     Checking libp2p-tcp v0.44.1
[INFO] [stderr]     Checking libp2p-gossipsub v0.49.4
[INFO] [stderr]     Checking libp2p-connection-limits v0.6.0
[INFO] [stderr]     Checking libp2p-allow-block-list v0.6.0
[INFO] [stderr]     Checking hickory-resolver v0.25.2
[INFO] [stderr]     Checking libp2p-mdns v0.48.0
[INFO] [stderr]     Checking hyper v1.9.0
[INFO] [stderr]     Checking libp2p-dns v0.44.0
[INFO] [stderr]     Checking libp2p v0.56.0
[INFO] [stderr]     Checking hyper-util v0.1.20
[INFO] [stderr]     Checking rustls-webpki v0.103.13
[INFO] [stderr]     Checking axum v0.8.9
[INFO] [stderr]     Checking tokio-rustls v0.26.4
[INFO] [stderr]     Checking rustls-platform-verifier v0.6.2
[INFO] [stderr]     Checking hyper-rustls v0.27.9
[INFO] [stderr]     Checking reqwest v0.13.2
[INFO] [stderr]     Checking vela v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `anyhow::Result`
[INFO] [stdout]   --> src/consensus/hotstuff.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | use anyhow::Result;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `hotstuff::*`
[INFO] [stdout]  --> src/consensus/mod.rs:2:9
[INFO] [stdout]   |
[INFO] [stdout] 2 | pub use hotstuff::*; 
[INFO] [stdout]   |         ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `state::*`
[INFO] [stdout]  --> src/storage/mod.rs:3:9
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub use state::*;
[INFO] [stdout]   |         ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `db::*`
[INFO] [stdout]  --> src/storage/mod.rs:4:9
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub use db::*;
[INFO] [stdout]   |         ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `rand::rngs::OsRng`
[INFO] [stdout]   --> src/main.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use rand::rngs::OsRng;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `anyhow::Result`
[INFO] [stdout]   --> src/consensus/hotstuff.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | use anyhow::Result;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `hotstuff::*`
[INFO] [stdout]  --> src/consensus/mod.rs:2:9
[INFO] [stdout]   |
[INFO] [stdout] 2 | pub use hotstuff::*; 
[INFO] [stdout]   |         ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `state::*`
[INFO] [stdout]  --> src/storage/mod.rs:3:9
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub use state::*;
[INFO] [stdout]   |         ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `db::*`
[INFO] [stdout]  --> src/storage/mod.rs:4:9
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub use db::*;
[INFO] [stdout]   |         ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `rand::rngs::OsRng`
[INFO] [stdout]   --> src/main.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use rand::rngs::OsRng;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable call
[INFO] [stdout]   --> src/network/mod.rs:35:10
[INFO] [stdout]    |
[INFO] [stdout] 35 | #[derive(NetworkBehaviour)]
[INFO] [stdout]    |          ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |          |
[INFO] [stdout]    |          unreachable call
[INFO] [stdout]    |          any code following this expression is unreachable
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout]    = note: this warning originates in the derive macro `NetworkBehaviour` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable call
[INFO] [stdout]   --> src/network/mod.rs:35:10
[INFO] [stdout]    |
[INFO] [stdout] 35 | #[derive(NetworkBehaviour)]
[INFO] [stdout]    |          ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |          |
[INFO] [stdout]    |          unreachable call
[INFO] [stdout]    |          any code following this expression is unreachable
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout]    = note: this warning originates in the derive macro `NetworkBehaviour` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `msg`
[INFO] [stdout]    --> src/main.rs:197:33
[INFO] [stdout]     |
[INFO] [stdout] 197 |                     if let Some(msg) = result {
[INFO] [stdout]     |                                 ^^^ help: if this is intentional, prefix it with an underscore: `_msg`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `hotstuff_prod`
[INFO] [stdout]    --> src/main.rs:272:9
[INFO] [stdout]     |
[INFO] [stdout] 272 |     let hotstuff_prod = hotstuff.clone();
[INFO] [stdout]     |         ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hotstuff_prod`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `validator_set`, `block_interval`, and `timeout_ms` are never read
[INFO] [stdout]   --> src/consensus/hotstuff.rs:23:9
[INFO] [stdout]    |
[INFO] [stdout] 22 | pub struct ConsensusConfig {
[INFO] [stdout]    |            --------------- fields in this struct
[INFO] [stdout] 23 |     pub validator_set:  Vec<Validator>,
[INFO] [stdout]    |         ^^^^^^^^^^^^^
[INFO] [stdout] 24 |     pub f:              usize,    // max faulty nodes (n >= 3f+1)
[INFO] [stdout] 25 |     pub block_interval: u64,      // ms between blocks
[INFO] [stdout]    |         ^^^^^^^^^^^^^^
[INFO] [stdout] 26 |     pub timeout_ms:     u64,      // round timeout before view change
[INFO] [stdout]    |         ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ConsensusConfig` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `is_leader` and `leader_for_round` are never used
[INFO] [stdout]   --> src/consensus/hotstuff.rs:45:12
[INFO] [stdout]    |
[INFO] [stdout] 29 | impl ConsensusConfig {
[INFO] [stdout]    | -------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 45 |     pub fn is_leader(&self, round: u64, address: &Address) -> bool {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 50 |     pub fn leader_for_round(&self, round: u64) -> &Validator {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/consensus/hotstuff.rs:76:10
[INFO] [stdout]    |
[INFO] [stdout] 76 |     Vote(Vote),
[INFO] [stdout]    |     ---- ^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `HotStuffMsg` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
[INFO] [stdout]    |
[INFO] [stdout] 76 -     Vote(Vote),
[INFO] [stdout] 76 +     Vote(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `round` and `high_qc` are never read
[INFO] [stdout]   --> src/consensus/hotstuff.rs:79:9
[INFO] [stdout]    |
[INFO] [stdout] 78 |     NewView {
[INFO] [stdout]    |     ------- fields in this variant
[INFO] [stdout] 79 |         round:   u64,
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout] 80 |         high_qc: QuorumCert,
[INFO] [stdout]    |         ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `HotStuffMsg` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Propose` and `Timeout` are never constructed
[INFO] [stdout]   --> src/consensus/hotstuff.rs:71:5
[INFO] [stdout]    |
[INFO] [stdout] 69 | pub enum HotStuffMsg {
[INFO] [stdout]    |          ----------- variants in this enum
[INFO] [stdout] 70 |     /// Leader → Replicas: here's the new block proposal
[INFO] [stdout] 71 |     Propose {
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 83 |     Timeout {
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `HotStuffMsg` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `address` is never read
[INFO] [stdout]   --> src/consensus/hotstuff.rs:93:9
[INFO] [stdout]    |
[INFO] [stdout] 92 | pub struct HotStuffNode {
[INFO] [stdout]    |            ------------ field in this struct
[INFO] [stdout] 93 |     pub address:      Address,
[INFO] [stdout]    |         ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `HotStuffNode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `is_leader`, `chain_height`, `tip`, `propose`, `handle_new_view`, and `advance_round` are never used
[INFO] [stdout]    --> src/consensus/hotstuff.rs:131:12
[INFO] [stdout]     |
[INFO] [stdout] 113 | impl HotStuffNode {
[INFO] [stdout]     | ----------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 131 |     pub fn is_leader(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 135 |     pub fn chain_height(&self) -> u64 {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 139 |     pub fn tip(&self) -> &Block {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 145 |     pub fn propose(&mut self, transactions: Vec<Transaction>) -> HotStuffMsg {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 248 |     pub fn handle_new_view(&mut self, round: u64, high_qc: QuorumCert) -> Option<HotStuffMsg> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 294 |     fn advance_round(&mut self, new_round: u64) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Keypair` is never constructed
[INFO] [stdout]  --> src/crypto/mod.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct Keypair {
[INFO] [stdout]   |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `generate` is never used
[INFO] [stdout]   --> src/crypto/mod.rs:11:12
[INFO] [stdout]    |
[INFO] [stdout] 10 | impl Keypair {
[INFO] [stdout]    | ------------ associated function in this implementation
[INFO] [stdout] 11 |     pub fn generate() -> Self {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Mempool` is never constructed
[INFO] [stdout]  --> src/mempool/mod.rs:4:12
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub struct Mempool {
[INFO] [stdout]   |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `add`, `take`, `remove_committed`, and `len` are never used
[INFO] [stdout]   --> src/mempool/mod.rs:9:12
[INFO] [stdout]    |
[INFO] [stdout]  8 | impl Mempool {
[INFO] [stdout]    | ------------ associated items in this implementation
[INFO] [stdout]  9 |     pub fn new(_max: usize) -> Self { Mempool { transactions: HashMap::new() } }
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 10 |     pub fn add(&mut self, tx: Transaction) -> anyhow::Result<Hash> {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 15 |     pub fn take(&mut self, limit: usize) -> Vec<Transaction> {
[INFO] [stdout]    |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 18 |     pub fn remove_committed(&mut self, txs: &[Transaction]) {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 21 |     pub fn len(&self) -> usize { self.transactions.len() }
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `local_peer_id` is never read
[INFO] [stdout]   --> src/network/mod.rs:42:9
[INFO] [stdout]    |
[INFO] [stdout] 41 | pub struct P2PNode {
[INFO] [stdout]    |            ------- field in this struct
[INFO] [stdout] 42 |     pub local_peer_id: PeerId,
[INFO] [stdout]    |         ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/rpc/mod.rs:27:12
[INFO] [stdout]    |
[INFO] [stdout] 26 | impl NodeState {
[INFO] [stdout]    | -------------- associated function in this implementation
[INFO] [stdout] 27 |     pub fn new(port: u16, tx_broadcast: mpsc::Sender<Transaction>) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `height` is never used
[INFO] [stdout]   --> src/storage/db.rs:33:12
[INFO] [stdout]    |
[INFO] [stdout]  9 | impl BlockDb {
[INFO] [stdout]    | ------------ method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 33 |     pub fn height(&self) -> u64 {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `from_hex` is never used
[INFO] [stdout]   --> src/types.rs:32:12
[INFO] [stdout]    |
[INFO] [stdout] 16 | impl Hash {
[INFO] [stdout]    | --------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 32 |     pub fn from_hex(s: &str) -> anyhow::Result<Self> {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `to_hex` is never used
[INFO] [stdout]   --> src/types.rs:66:12
[INFO] [stdout]    |
[INFO] [stdout] 61 | impl Address {
[INFO] [stdout]    | ------------ method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 66 |     pub fn to_hex(&self) -> String {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]    --> src/types.rs:179:12
[INFO] [stdout]     |
[INFO] [stdout] 178 | impl Block {
[INFO] [stdout]     | ---------- associated function in this implementation
[INFO] [stdout] 179 |     pub fn new(
[INFO] [stdout]     |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]    --> src/types.rs:304:12
[INFO] [stdout]     |
[INFO] [stdout] 303 | impl Account {
[INFO] [stdout]     | ------------ associated function in this implementation
[INFO] [stdout] 304 |     pub fn new(address: Address) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `msg`
[INFO] [stdout]    --> src/main.rs:197:33
[INFO] [stdout]     |
[INFO] [stdout] 197 |                     if let Some(msg) = result {
[INFO] [stdout]     |                                 ^^^ help: if this is intentional, prefix it with an underscore: `_msg`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `hotstuff_prod`
[INFO] [stdout]    --> src/main.rs:272:9
[INFO] [stdout]     |
[INFO] [stdout] 272 |     let hotstuff_prod = hotstuff.clone();
[INFO] [stdout]     |         ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hotstuff_prod`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `validator_set`, `block_interval`, and `timeout_ms` are never read
[INFO] [stdout]   --> src/consensus/hotstuff.rs:23:9
[INFO] [stdout]    |
[INFO] [stdout] 22 | pub struct ConsensusConfig {
[INFO] [stdout]    |            --------------- fields in this struct
[INFO] [stdout] 23 |     pub validator_set:  Vec<Validator>,
[INFO] [stdout]    |         ^^^^^^^^^^^^^
[INFO] [stdout] 24 |     pub f:              usize,    // max faulty nodes (n >= 3f+1)
[INFO] [stdout] 25 |     pub block_interval: u64,      // ms between blocks
[INFO] [stdout]    |         ^^^^^^^^^^^^^^
[INFO] [stdout] 26 |     pub timeout_ms:     u64,      // round timeout before view change
[INFO] [stdout]    |         ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ConsensusConfig` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `is_leader` and `leader_for_round` are never used
[INFO] [stdout]   --> src/consensus/hotstuff.rs:45:12
[INFO] [stdout]    |
[INFO] [stdout] 29 | impl ConsensusConfig {
[INFO] [stdout]    | -------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 45 |     pub fn is_leader(&self, round: u64, address: &Address) -> bool {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 50 |     pub fn leader_for_round(&self, round: u64) -> &Validator {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/consensus/hotstuff.rs:76:10
[INFO] [stdout]    |
[INFO] [stdout] 76 |     Vote(Vote),
[INFO] [stdout]    |     ---- ^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `HotStuffMsg` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
[INFO] [stdout]    |
[INFO] [stdout] 76 -     Vote(Vote),
[INFO] [stdout] 76 +     Vote(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `round` and `high_qc` are never read
[INFO] [stdout]   --> src/consensus/hotstuff.rs:79:9
[INFO] [stdout]    |
[INFO] [stdout] 78 |     NewView {
[INFO] [stdout]    |     ------- fields in this variant
[INFO] [stdout] 79 |         round:   u64,
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout] 80 |         high_qc: QuorumCert,
[INFO] [stdout]    |         ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `HotStuffMsg` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Propose` and `Timeout` are never constructed
[INFO] [stdout]   --> src/consensus/hotstuff.rs:71:5
[INFO] [stdout]    |
[INFO] [stdout] 69 | pub enum HotStuffMsg {
[INFO] [stdout]    |          ----------- variants in this enum
[INFO] [stdout] 70 |     /// Leader → Replicas: here's the new block proposal
[INFO] [stdout] 71 |     Propose {
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 83 |     Timeout {
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `HotStuffMsg` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `address` is never read
[INFO] [stdout]   --> src/consensus/hotstuff.rs:93:9
[INFO] [stdout]    |
[INFO] [stdout] 92 | pub struct HotStuffNode {
[INFO] [stdout]    |            ------------ field in this struct
[INFO] [stdout] 93 |     pub address:      Address,
[INFO] [stdout]    |         ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `HotStuffNode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `is_leader`, `chain_height`, `tip`, `propose`, `handle_new_view`, and `advance_round` are never used
[INFO] [stdout]    --> src/consensus/hotstuff.rs:131:12
[INFO] [stdout]     |
[INFO] [stdout] 113 | impl HotStuffNode {
[INFO] [stdout]     | ----------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 131 |     pub fn is_leader(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 135 |     pub fn chain_height(&self) -> u64 {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 139 |     pub fn tip(&self) -> &Block {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 145 |     pub fn propose(&mut self, transactions: Vec<Transaction>) -> HotStuffMsg {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 248 |     pub fn handle_new_view(&mut self, round: u64, high_qc: QuorumCert) -> Option<HotStuffMsg> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 294 |     fn advance_round(&mut self, new_round: u64) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Keypair` is never constructed
[INFO] [stdout]  --> src/crypto/mod.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct Keypair {
[INFO] [stdout]   |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `generate` is never used
[INFO] [stdout]   --> src/crypto/mod.rs:11:12
[INFO] [stdout]    |
[INFO] [stdout] 10 | impl Keypair {
[INFO] [stdout]    | ------------ associated function in this implementation
[INFO] [stdout] 11 |     pub fn generate() -> Self {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Mempool` is never constructed
[INFO] [stdout]  --> src/mempool/mod.rs:4:12
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub struct Mempool {
[INFO] [stdout]   |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `add`, `take`, `remove_committed`, and `len` are never used
[INFO] [stdout]   --> src/mempool/mod.rs:9:12
[INFO] [stdout]    |
[INFO] [stdout]  8 | impl Mempool {
[INFO] [stdout]    | ------------ associated items in this implementation
[INFO] [stdout]  9 |     pub fn new(_max: usize) -> Self { Mempool { transactions: HashMap::new() } }
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 10 |     pub fn add(&mut self, tx: Transaction) -> anyhow::Result<Hash> {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 15 |     pub fn take(&mut self, limit: usize) -> Vec<Transaction> {
[INFO] [stdout]    |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 18 |     pub fn remove_committed(&mut self, txs: &[Transaction]) {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 21 |     pub fn len(&self) -> usize { self.transactions.len() }
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `local_peer_id` is never read
[INFO] [stdout]   --> src/network/mod.rs:42:9
[INFO] [stdout]    |
[INFO] [stdout] 41 | pub struct P2PNode {
[INFO] [stdout]    |            ------- field in this struct
[INFO] [stdout] 42 |     pub local_peer_id: PeerId,
[INFO] [stdout]    |         ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/rpc/mod.rs:27:12
[INFO] [stdout]    |
[INFO] [stdout] 26 | impl NodeState {
[INFO] [stdout]    | -------------- associated function in this implementation
[INFO] [stdout] 27 |     pub fn new(port: u16, tx_broadcast: mpsc::Sender<Transaction>) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `height` is never used
[INFO] [stdout]   --> src/storage/db.rs:33:12
[INFO] [stdout]    |
[INFO] [stdout]  9 | impl BlockDb {
[INFO] [stdout]    | ------------ method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 33 |     pub fn height(&self) -> u64 {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `from_hex` is never used
[INFO] [stdout]   --> src/types.rs:32:12
[INFO] [stdout]    |
[INFO] [stdout] 16 | impl Hash {
[INFO] [stdout]    | --------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 32 |     pub fn from_hex(s: &str) -> anyhow::Result<Self> {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `to_hex` is never used
[INFO] [stdout]   --> src/types.rs:66:12
[INFO] [stdout]    |
[INFO] [stdout] 61 | impl Address {
[INFO] [stdout]    | ------------ method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 66 |     pub fn to_hex(&self) -> String {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]    --> src/types.rs:179:12
[INFO] [stdout]     |
[INFO] [stdout] 178 | impl Block {
[INFO] [stdout]     | ---------- associated function in this implementation
[INFO] [stdout] 179 |     pub fn new(
[INFO] [stdout]     |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]    --> src/types.rs:304:12
[INFO] [stdout]     |
[INFO] [stdout] 303 | impl Account {
[INFO] [stdout]     | ------------ associated function in this implementation
[INFO] [stdout] 304 |     pub fn new(address: Address) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 23s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nix v0.30.1
[INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 3`
[INFO] running `Command { std: "docker" "inspect" "586223ba509070cc76f1123b81d7d8442eb213fd1e30105a8b14c2fd976ab7b6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "586223ba509070cc76f1123b81d7d8442eb213fd1e30105a8b14c2fd976ab7b6", kill_on_drop: false }`
[INFO] [stdout] 586223ba509070cc76f1123b81d7d8442eb213fd1e30105a8b14c2fd976ab7b6
