[INFO] cloning repository https://github.com/nsvoriginals/xvii [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/nsvoriginals/xvii" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnsvoriginals%2Fxvii", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnsvoriginals%2Fxvii'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 28de9fffb0e1d6f0ce01a200e2323c1948e0464f [INFO] checking nsvoriginals/xvii against 14450d27a2d0d3b3cb66037c8111ee3da14ed3c2 for pr-160391 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnsvoriginals%2Fxvii" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/nsvoriginals/xvii [INFO] finished tweaking git repo https://github.com/nsvoriginals/xvii [INFO] tweaked toml for git repo https://github.com/nsvoriginals/xvii written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/nsvoriginals/xvii on toolchain 14450d27a2d0d3b3cb66037c8111ee3da14ed3c2 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+14450d27a2d0d3b3cb66037c8111ee3da14ed3c2" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/nsvoriginals/xvii 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" "+14450d27a2d0d3b3cb66037c8111ee3da14ed3c2" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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] 76ba89579759caad3835ce70e403333ad9f04f93236b8bd3f809056c9be469c2 [INFO] running `Command { std: "docker" "start" "76ba89579759caad3835ce70e403333ad9f04f93236b8bd3f809056c9be469c2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "76ba89579759caad3835ce70e403333ad9f04f93236b8bd3f809056c9be469c2", 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" "76ba89579759caad3835ce70e403333ad9f04f93236b8bd3f809056c9be469c2" "/opt/rustwide/cargo-home/bin/cargo" "+14450d27a2d0d3b3cb66037c8111ee3da14ed3c2" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "76ba89579759caad3835ce70e403333ad9f04f93236b8bd3f809056c9be469c2", 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" "76ba89579759caad3835ce70e403333ad9f04f93236b8bd3f809056c9be469c2" "/opt/rustwide/cargo-home/bin/cargo" "+14450d27a2d0d3b3cb66037c8111ee3da14ed3c2" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling unicode-ident v1.0.19 [INFO] [stderr] Checking cfg-if v1.0.3 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Checking itoa v1.0.15 [INFO] [stderr] Checking pin-project-lite v0.2.16 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Checking bytes v1.10.1 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Checking memchr v2.7.5 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling find-msvc-tools v0.1.1 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking tower-service v0.3.3 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Checking log v0.4.28 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Checking tracing-core v0.1.34 [INFO] [stderr] Checking ryu v1.0.20 [INFO] [stderr] Checking tower-layer v0.3.3 [INFO] [stderr] Compiling cc v1.2.36 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling zerocopy v0.8.27 [INFO] [stderr] Checking regex-syntax v0.8.6 [INFO] [stderr] Compiling rustversion v1.0.22 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking either v1.15.0 [INFO] [stderr] Checking http v1.3.1 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking percent-encoding v2.3.2 [INFO] [stderr] Compiling rayon-core v1.13.0 [INFO] [stderr] Checking sync_wrapper v1.0.2 [INFO] [stderr] Checking bitflags v2.9.4 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Checking atomic-waker v1.1.2 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking form_urlencoded v1.2.2 [INFO] [stderr] Checking half v2.6.0 [INFO] [stderr] Compiling rustix v1.1.2 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Checking ciborium-io v0.2.2 [INFO] [stderr] Checking clap_lex v0.7.5 [INFO] [stderr] Checking anstyle v1.0.11 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Checking signal-hook-registry v1.4.6 [INFO] [stderr] Checking socket2 v0.6.0 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking crossbeam-deque v0.8.6 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking is-terminal v0.4.16 [INFO] [stderr] Checking plotters-backend v0.3.7 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking clap_builder v4.5.47 [INFO] [stderr] Checking ciborium-ll v0.2.2 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking keccak v0.1.5 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking matchit v0.7.3 [INFO] [stderr] Checking humantime v2.3.0 [INFO] [stderr] Checking linux-raw-sys v0.11.0 [INFO] [stderr] Checking arrayvec v0.7.6 [INFO] [stderr] Checking plotters-svg v0.3.7 [INFO] [stderr] Checking iana-time-zone v0.1.63 [INFO] [stderr] Checking arrayref v0.3.9 [INFO] [stderr] Checking cast v0.3.0 [INFO] [stderr] Checking untrusted v0.9.0 [INFO] [stderr] Checking cpufeatures v0.2.17 [INFO] [stderr] Checking constant_time_eq v0.3.1 [INFO] [stderr] Checking termcolor v1.4.1 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking plotters v0.3.7 [INFO] [stderr] Checking walkdir v2.5.0 [INFO] [stderr] Checking uuid v1.18.1 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking anes v0.1.6 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking rayon v1.11.0 [INFO] [stderr] Checking fastrand v2.3.0 [INFO] [stderr] Checking regex-automata v0.4.10 [INFO] [stderr] Compiling blake3 v1.8.2 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking tower-http v0.5.2 [INFO] [stderr] Checking oorandom v11.1.5 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking sha3 v0.10.8 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Checking ripemd v0.1.3 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking criterion-plot v0.5.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking clap v4.5.47 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking tempfile v3.22.0 [INFO] [stderr] Checking regex v1.11.2 [INFO] [stderr] Checking env_logger v0.10.2 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Checking tokio v1.47.1 [INFO] [stderr] Checking axum-core v0.4.5 [INFO] [stderr] Checking hyper v1.7.0 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking serde_path_to_error v0.1.17 [INFO] [stderr] Checking ciborium v0.2.2 [INFO] [stderr] Checking chrono v0.4.42 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking hyper-util v0.1.16 [INFO] [stderr] Checking axum v0.7.9 [INFO] [stderr] Checking tinytemplate v1.2.1 [INFO] [stderr] Checking criterion v0.5.1 [INFO] [stderr] Checking xvii-chain v1.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `AdvancedHasher` [INFO] [stdout] --> src/blockchain.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::crypto::{AdvancedHasher, MerkleTree}; [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 imports: `SystemTime` and `UNIX_EPOCH` [INFO] [stdout] --> src/blockchain.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | use std::time::{SystemTime, UNIX_EPOCH}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::transaction::Transaction` [INFO] [stdout] --> src/consensus.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::transaction::Transaction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::block::Block` [INFO] [stdout] --> src/mempool.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::block::Block; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::crypto::AdvancedHasher` [INFO] [stdout] --> src/mempool.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::crypto::AdvancedHasher; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::consensus::HybridConsensus` [INFO] [stdout] --> src/mempool.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::consensus::HybridConsensus; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::transaction::Transaction` [INFO] [stdout] --> src/validator.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::transaction::Transaction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::crypto::AdvancedHasher` [INFO] [stdout] --> src/validator.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::crypto::AdvancedHasher; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::crypto::AdvancedHasher` [INFO] [stdout] --> src/merkle.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::crypto::AdvancedHasher; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AdvancedHasher` [INFO] [stdout] --> src/blockchain.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::crypto::{AdvancedHasher, MerkleTree}; [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 imports: `SystemTime` and `UNIX_EPOCH` [INFO] [stdout] --> src/blockchain.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | use std::time::{SystemTime, UNIX_EPOCH}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::transaction::Transaction` [INFO] [stdout] --> src/consensus.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::transaction::Transaction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::block::Block` [INFO] [stdout] --> src/mempool.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::block::Block; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::crypto::AdvancedHasher` [INFO] [stdout] --> src/mempool.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::crypto::AdvancedHasher; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::consensus::HybridConsensus` [INFO] [stdout] --> src/mempool.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::consensus::HybridConsensus; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::transaction::Transaction` [INFO] [stdout] --> src/validator.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::transaction::Transaction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::crypto::AdvancedHasher` [INFO] [stdout] --> src/validator.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::crypto::AdvancedHasher; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::crypto::AdvancedHasher` [INFO] [stdout] --> src/merkle.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::crypto::AdvancedHasher; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/blockchain.rs:287:74 [INFO] [stdout] | [INFO] [stdout] 287 | fn process_transaction_effects(&mut self, transaction: &Transaction, block: &Block) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/blockchain.rs:486:13 [INFO] [stdout] | [INFO] [stdout] 486 | let mut reorg_blocks = vec![new_chain_tip]; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/blockchain.rs:287:74 [INFO] [stdout] | [INFO] [stdout] 287 | fn process_transaction_effects(&mut self, transaction: &Transaction, block: &Block) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/blockchain.rs:486:13 [INFO] [stdout] | [INFO] [stdout] 486 | let mut reorg_blocks = vec![new_chain_tip]; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prev_block` [INFO] [stdout] --> src/consensus.rs:198:52 [INFO] [stdout] | [INFO] [stdout] 198 | fn validate_hybrid_score(&self, block: &Block, prev_block: &Block) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prev_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stake_proof` [INFO] [stdout] --> src/consensus.rs:252:13 [INFO] [stdout] | [INFO] [stdout] 252 | let stake_proof = self.create_stake_proof(&block, validator_stake)?; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stake_proof` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prev_block` [INFO] [stdout] --> src/consensus.rs:198:52 [INFO] [stdout] | [INFO] [stdout] 198 | fn validate_hybrid_score(&self, block: &Block, prev_block: &Block) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prev_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stake_proof` [INFO] [stdout] --> src/consensus.rs:252:13 [INFO] [stdout] | [INFO] [stdout] 252 | let stake_proof = self.create_stake_proof(&block, validator_stake)?; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stake_proof` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `include_pending` is never read [INFO] [stdout] --> src/main.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 33 | struct QueryParams { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 36 | include_pending: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `QueryParams` has a derived impl for the trait `Debug`, but this is 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: multiple associated items are never used [INFO] [stdout] --> src/block.rs:201:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Block { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 201 | pub fn get_transaction(&self, tx_id: &str) -> Option<&Transaction> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 205 | pub fn has_transaction(&self, tx_id: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 209 | pub fn get_coinbase_transaction(&self) -> Option<&Transaction> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 213 | pub fn get_transaction_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 217 | pub fn get_total_value_transferred(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 224 | pub fn get_block_reward(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 230 | pub fn calculate_difficulty_target(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 234 | pub fn meets_difficulty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 239 | pub fn get_block_time(&self, prev_block: Option<&Block>) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 247 | pub fn calculate_fees_per_gas(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 255 | pub fn get_utilization_rate(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 263 | pub fn create_block_summary(&self) -> BlockSummary { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 279 | pub fn to_json(&self) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 283 | pub fn from_json(json: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 287 | pub fn verify_transaction_inclusion(&self, tx_id: &str, merkle_proof: &[String]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 295 | pub fn get_merkle_proof(&self, tx_id: &str) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 308 | pub fn calculate_block_weight(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 314 | pub fn is_full(&self, max_size: usize, max_gas: u64) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 318 | pub fn can_fit_transaction(&self, tx: &Transaction, max_size: usize, max_gas: u64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BlockSummary` is never constructed [INFO] [stdout] --> src/block.rs:326:12 [INFO] [stdout] | [INFO] [stdout] 326 | pub struct BlockSummary { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BlockHeader` is never constructed [INFO] [stdout] --> src/block.rs:341:12 [INFO] [stdout] | [INFO] [stdout] 341 | pub struct BlockHeader { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/blockchain.rs:347:12 [INFO] [stdout] | [INFO] [stdout] 88 | impl AdvancedBlockchain { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 347 | pub fn calculate_network_hashrate(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 365 | pub fn get_stake(&self, address: &str) -> u64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 373 | pub fn is_chain_valid(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 414 | pub fn get_block_by_index(&self, index: u64) -> Option<&Block> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 418 | pub fn get_transaction_by_id(&self, tx_id: &str) -> Option<(&Transaction, &Block)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 429 | pub fn get_transactions_by_address(&self, address: &str) -> Vec<(&Transaction, &Block)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 443 | pub fn get_utxos_for_address(&self, address: &str) -> Vec<&UTXO> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 452 | pub fn fork_choice_rule(&self, competing_blocks: &[Block]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 471 | fn calculate_block_score(&self, block: &Block) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 477 | pub fn handle_orphaned_block(&mut self, block: Block) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 484 | pub fn reorganize_chain(&mut self, new_chain_tip: Block) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 505 | pub fn get_mempool_transactions(&self, limit: Option) -> Vec<&Transaction> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 513 | pub fn estimate_transaction_fee(&self, transaction_size: usize, priority: TransactionPriority) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 527 | pub fn get_blockchain_info(&self) -> BlockchainInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BlockchainInfo` is never constructed [INFO] [stdout] --> src/blockchain.rs:544:12 [INFO] [stdout] | [INFO] [stdout] 544 | pub struct BlockchainInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TransactionPriority` is never used [INFO] [stdout] --> src/blockchain.rs:558:10 [INFO] [stdout] | [INFO] [stdout] 558 | pub enum TransactionPriority { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/transaction.rs:105:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl Transaction { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 105 | pub fn create_stake_transaction( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 146 | pub fn create_unstake_transaction( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 186 | pub fn create_smart_contract_transaction( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 224 | pub fn create_multi_signature_transaction( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 331 | pub fn is_stake_transaction(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 335 | pub fn is_contract_transaction(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 340 | pub fn get_total_output_value(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 344 | pub fn get_effective_gas_price(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 366 | pub fn to_json(&self) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 370 | pub fn from_json(json: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StakeData` is never constructed [INFO] [stdout] --> src/transaction.rs:376:12 [INFO] [stdout] | [INFO] [stdout] 376 | pub struct StakeData { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UnstakeData` is never constructed [INFO] [stdout] --> src/transaction.rs:383:12 [INFO] [stdout] | [INFO] [stdout] 383 | pub struct UnstakeData { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MultiSigData` is never constructed [INFO] [stdout] --> src/transaction.rs:389:12 [INFO] [stdout] | [INFO] [stdout] 389 | pub struct MultiSigData { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `remove_transaction`, `get_pending_transactions`, `clear`, and `total_fees` are never used [INFO] [stdout] --> src/transaction.rs:450:12 [INFO] [stdout] | [INFO] [stdout] 402 | impl TransactionPool { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 450 | pub fn remove_transaction(&mut self, tx_id: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 486 | pub fn get_pending_transactions(&self) -> &[Transaction] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 490 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 498 | pub fn total_fees(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ConsensusChallenge` is never constructed [INFO] [stdout] --> src/consensus.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct ConsensusChallenge { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `slash_validator`, `get_validator_power`, `get_total_stake`, and `is_validator_active` are never used [INFO] [stdout] --> src/consensus.rs:320:12 [INFO] [stdout] | [INFO] [stdout] 76 | impl HybridConsensus { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 320 | pub fn slash_validator(&mut self, validator_id: &str, reason: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 367 | pub fn get_validator_power(&self, validator_id: &str) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 375 | pub fn get_total_stake(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 379 | pub fn is_validator_active(&self, validator_id: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `sha512`, `sha3_256`, `ripemd160`, `double_sha256`, `pow_hash`, and `memory_hard_hash` are never used [INFO] [stdout] --> src/crypto.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl AdvancedHasher { [INFO] [stdout] | ------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn sha512(data: &[u8]) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn sha3_256(data: &[u8]) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn ripemd160(data: &[u8]) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn double_sha256(data: &[u8]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn pow_hash(data: &[u8], nonce: u64, difficulty: u32) -> (String, bool) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn memory_hard_hash(data: &[u8], memory_size: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_public_key_hex` is never used [INFO] [stdout] --> src/crypto.rs:136:12 [INFO] [stdout] | [INFO] [stdout] 111 | impl DigitalSigner { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 136 | pub fn get_public_key_hex(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `difficulty` is never read [INFO] [stdout] --> src/crypto.rs:258:9 [INFO] [stdout] | [INFO] [stdout] 257 | pub struct ProofOfWork { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 258 | pub difficulty: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ProofOfWork` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bytes_to_hex` is never used [INFO] [stdout] --> src/crypto.rs:294:8 [INFO] [stdout] | [INFO] [stdout] 294 | pub fn bytes_to_hex(bytes: &[u8]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hex_to_bytes` is never used [INFO] [stdout] --> src/crypto.rs:302:8 [INFO] [stdout] | [INFO] [stdout] 302 | pub fn hex_to_bytes(hex: &str) -> Result, hex::FromHexError> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `cleanup_expired`, `get_transaction`, `contains_transaction`, `get_total_gas`, and `get_account_transactions` are never used [INFO] [stdout] --> src/mempool.rs:224:12 [INFO] [stdout] | [INFO] [stdout] 69 | impl AdvancedMempool { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 224 | pub fn cleanup_expired(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 249 | pub fn get_transaction(&self, hash: &str) -> Option<&Transaction> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 253 | pub fn contains_transaction(&self, hash: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 261 | pub fn get_total_gas(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 265 | pub fn get_account_transactions(&self, address: &str) -> Vec<&Transaction> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_performance_score_standalone` is never used [INFO] [stdout] --> src/validator.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn calculate_performance_score_standalone(validator: &ValidatorInfo) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ValidatorPerformance` is never constructed [INFO] [stdout] --> src/validator.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct ValidatorPerformance { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `rotation_epoch`, `current_epoch`, and `block_rewards` are never read [INFO] [stdout] --> src/validator.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct ValidatorSet { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 48 | pub rotation_epoch: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 49 | pub current_epoch: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 50 | pub block_rewards: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ValidatorSet` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/validator.rs:138:12 [INFO] [stdout] | [INFO] [stdout] 53 | impl ValidatorSet { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 138 | pub fn validate_block(&mut self, block: &Block, prev_block: Option<&Block>) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | pub fn process_block_reward(&mut self, block: &Block, reward_amount: u64) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | pub fn slash_validator(&mut self, address: &str, reason: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 211 | pub fn rotate_validators(&mut self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 230 | fn calculate_performance_score(&self, validator: &ValidatorInfo) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 259 | pub fn get_validator_performance(&self, address: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 278 | pub fn get_active_validators(&self) -> Vec<&ValidatorInfo> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MerkleProof` is never constructed [INFO] [stdout] --> src/merkle.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct MerkleProof { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `verify` and `to_json` are never used [INFO] [stdout] --> src/merkle.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl MerkleProof { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 11 | pub fn verify(&self, leaf: &str) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn to_json(&self) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `batch_merkle_proof` is never used [INFO] [stdout] --> src/merkle.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn batch_merkle_proof(leaves: &[String], indices: &[usize]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `include_pending` is never read [INFO] [stdout] --> src/main.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 33 | struct QueryParams { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 36 | include_pending: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `QueryParams` has a derived impl for the trait `Debug`, but this is 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: multiple associated items are never used [INFO] [stdout] --> src/block.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Block { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn create_genesis() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub fn mine_block(&mut self, difficulty: u32) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | pub fn validate(&self, prev_block: Option<&Block>) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | pub fn get_transaction(&self, tx_id: &str) -> Option<&Transaction> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 205 | pub fn has_transaction(&self, tx_id: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 209 | pub fn get_coinbase_transaction(&self) -> Option<&Transaction> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 213 | pub fn get_transaction_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 217 | pub fn get_total_value_transferred(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 224 | pub fn get_block_reward(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 230 | pub fn calculate_difficulty_target(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 234 | pub fn meets_difficulty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 239 | pub fn get_block_time(&self, prev_block: Option<&Block>) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 247 | pub fn calculate_fees_per_gas(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 255 | pub fn get_utilization_rate(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 263 | pub fn create_block_summary(&self) -> BlockSummary { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 279 | pub fn to_json(&self) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 283 | pub fn from_json(json: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 287 | pub fn verify_transaction_inclusion(&self, tx_id: &str, merkle_proof: &[String]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 295 | pub fn get_merkle_proof(&self, tx_id: &str) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 308 | pub fn calculate_block_weight(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 314 | pub fn is_full(&self, max_size: usize, max_gas: u64) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 318 | pub fn can_fit_transaction(&self, tx: &Transaction, max_size: usize, max_gas: u64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BlockSummary` is never constructed [INFO] [stdout] --> src/block.rs:326:12 [INFO] [stdout] | [INFO] [stdout] 326 | pub struct BlockSummary { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BlockHeader` is never constructed [INFO] [stdout] --> src/block.rs:341:12 [INFO] [stdout] | [INFO] [stdout] 341 | pub struct BlockHeader { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/blockchain.rs:347:12 [INFO] [stdout] | [INFO] [stdout] 88 | impl AdvancedBlockchain { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 347 | pub fn calculate_network_hashrate(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 365 | pub fn get_stake(&self, address: &str) -> u64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 373 | pub fn is_chain_valid(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 414 | pub fn get_block_by_index(&self, index: u64) -> Option<&Block> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 418 | pub fn get_transaction_by_id(&self, tx_id: &str) -> Option<(&Transaction, &Block)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 429 | pub fn get_transactions_by_address(&self, address: &str) -> Vec<(&Transaction, &Block)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 443 | pub fn get_utxos_for_address(&self, address: &str) -> Vec<&UTXO> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 452 | pub fn fork_choice_rule(&self, competing_blocks: &[Block]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 471 | fn calculate_block_score(&self, block: &Block) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 477 | pub fn handle_orphaned_block(&mut self, block: Block) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 484 | pub fn reorganize_chain(&mut self, new_chain_tip: Block) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 505 | pub fn get_mempool_transactions(&self, limit: Option) -> Vec<&Transaction> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 513 | pub fn estimate_transaction_fee(&self, transaction_size: usize, priority: TransactionPriority) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 527 | pub fn get_blockchain_info(&self) -> BlockchainInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BlockchainInfo` is never constructed [INFO] [stdout] --> src/blockchain.rs:544:12 [INFO] [stdout] | [INFO] [stdout] 544 | pub struct BlockchainInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TransactionPriority` is never used [INFO] [stdout] --> src/blockchain.rs:558:10 [INFO] [stdout] | [INFO] [stdout] 558 | pub enum TransactionPriority { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/transaction.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl Transaction { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 45 | pub fn new(from: String, to: String, amount: u64, fee: u64, nonce: u64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub fn create_stake_transaction( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 146 | pub fn create_unstake_transaction( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 186 | pub fn create_smart_contract_transaction( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 224 | pub fn create_multi_signature_transaction( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 297 | pub fn sign(&mut self, signer: &DigitalSigner) -> Result<(), String> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 303 | pub fn verify_signature(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 316 | pub fn get_priority_score(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 327 | pub fn is_coinbase(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 331 | pub fn is_stake_transaction(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 335 | pub fn is_contract_transaction(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 340 | pub fn get_total_output_value(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 344 | pub fn get_effective_gas_price(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 366 | pub fn to_json(&self) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 370 | pub fn from_json(json: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StakeData` is never constructed [INFO] [stdout] --> src/transaction.rs:376:12 [INFO] [stdout] | [INFO] [stdout] 376 | pub struct StakeData { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UnstakeData` is never constructed [INFO] [stdout] --> src/transaction.rs:383:12 [INFO] [stdout] | [INFO] [stdout] 383 | pub struct UnstakeData { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MultiSigData` is never constructed [INFO] [stdout] --> src/transaction.rs:389:12 [INFO] [stdout] | [INFO] [stdout] 389 | pub struct MultiSigData { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TransactionPool` is never constructed [INFO] [stdout] --> src/transaction.rs:396:12 [INFO] [stdout] | [INFO] [stdout] 396 | pub struct TransactionPool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/transaction.rs:403:12 [INFO] [stdout] | [INFO] [stdout] 402 | impl TransactionPool { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 403 | pub fn new(max_size: usize, fee_threshold: u64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 411 | pub fn add_transaction(&mut self, transaction: Transaction) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 450 | pub fn remove_transaction(&mut self, tx_id: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 458 | pub fn get_transactions_for_block(&mut self, max_count: usize, max_size: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 486 | pub fn get_pending_transactions(&self) -> &[Transaction] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 490 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 494 | pub fn size(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 498 | pub fn total_fees(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ConsensusChallenge` is never constructed [INFO] [stdout] --> src/consensus.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct ConsensusChallenge { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `slash_validator`, `get_validator_power`, `get_total_stake`, and `is_validator_active` are never used [INFO] [stdout] --> src/consensus.rs:320:12 [INFO] [stdout] | [INFO] [stdout] 76 | impl HybridConsensus { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 320 | pub fn slash_validator(&mut self, validator_id: &str, reason: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 367 | pub fn get_validator_power(&self, validator_id: &str) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 375 | pub fn get_total_stake(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 379 | pub fn is_validator_active(&self, validator_id: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `sha512`, `sha3_256`, `ripemd160`, `double_sha256`, `pow_hash`, and `memory_hard_hash` are never used [INFO] [stdout] --> src/crypto.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl AdvancedHasher { [INFO] [stdout] | ------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn sha512(data: &[u8]) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn sha3_256(data: &[u8]) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn ripemd160(data: &[u8]) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn double_sha256(data: &[u8]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn pow_hash(data: &[u8], nonce: u64, difficulty: u32) -> (String, bool) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn memory_hard_hash(data: &[u8], memory_size: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DigitalSigner` is never constructed [INFO] [stdout] --> src/crypto.rs:106:12 [INFO] [stdout] | [INFO] [stdout] 106 | pub struct DigitalSigner { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `sign`, and `get_public_key_hex` are never used [INFO] [stdout] --> src/crypto.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 111 | impl DigitalSigner { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 112 | pub fn new() -> Result> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | pub fn sign(&self, message: &[u8]) -> CryptoSignature { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | pub fn get_public_key_hex(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `get_proof` and `verify_proof` are never used [INFO] [stdout] --> src/crypto.rs:212:12 [INFO] [stdout] | [INFO] [stdout] 170 | impl MerkleTree { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 212 | pub fn get_proof(&self, index: usize) -> Option> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 237 | pub fn verify_proof(leaf: &str, proof: &[String], root: &str, index: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProofOfWork` is never constructed [INFO] [stdout] --> src/crypto.rs:257:12 [INFO] [stdout] | [INFO] [stdout] 257 | pub struct ProofOfWork { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 48.44s [INFO] [stdout] warning: associated items `new`, `mine`, and `verify` are never used [INFO] [stdout] --> src/crypto.rs:263:12 [INFO] [stdout] | [INFO] [stdout] 262 | impl ProofOfWork { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 263 | pub fn new(difficulty: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 268 | pub fn mine(&self, data: &str, max_iterations: u64) -> Option<(u64, String)> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 288 | pub fn verify(&self, data: &str, nonce: u64, hash: &str) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bytes_to_hex` is never used [INFO] [stdout] --> src/crypto.rs:294:8 [INFO] [stdout] | [INFO] [stdout] 294 | pub fn bytes_to_hex(bytes: &[u8]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hex_to_bytes` is never used [INFO] [stdout] --> src/crypto.rs:302:8 [INFO] [stdout] | [INFO] [stdout] 302 | pub fn hex_to_bytes(hex: &str) -> Result, hex::FromHexError> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `cleanup_expired`, `get_transaction`, `contains_transaction`, `get_total_gas`, and `get_account_transactions` are never used [INFO] [stdout] --> src/mempool.rs:224:12 [INFO] [stdout] | [INFO] [stdout] 69 | impl AdvancedMempool { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 224 | pub fn cleanup_expired(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 249 | pub fn get_transaction(&self, hash: &str) -> Option<&Transaction> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 253 | pub fn contains_transaction(&self, hash: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 261 | pub fn get_total_gas(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 265 | pub fn get_account_transactions(&self, address: &str) -> Vec<&Transaction> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_performance_score_standalone` is never used [INFO] [stdout] --> src/validator.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn calculate_performance_score_standalone(validator: &ValidatorInfo) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ValidatorPerformance` is never constructed [INFO] [stdout] --> src/validator.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct ValidatorPerformance { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `rotation_epoch`, `current_epoch`, and `block_rewards` are never read [INFO] [stdout] --> src/validator.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct ValidatorSet { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 48 | pub rotation_epoch: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 49 | pub current_epoch: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 50 | pub block_rewards: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ValidatorSet` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/validator.rs:138:12 [INFO] [stdout] | [INFO] [stdout] 53 | impl ValidatorSet { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 138 | pub fn validate_block(&mut self, block: &Block, prev_block: Option<&Block>) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | pub fn process_block_reward(&mut self, block: &Block, reward_amount: u64) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | pub fn slash_validator(&mut self, address: &str, reason: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 211 | pub fn rotate_validators(&mut self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 230 | fn calculate_performance_score(&self, validator: &ValidatorInfo) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 259 | pub fn get_validator_performance(&self, address: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 278 | pub fn get_active_validators(&self) -> Vec<&ValidatorInfo> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MerkleProof` is never constructed [INFO] [stdout] --> src/merkle.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct MerkleProof { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `verify` and `to_json` are never used [INFO] [stdout] --> src/merkle.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl MerkleProof { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 11 | pub fn verify(&self, leaf: &str) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn to_json(&self) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `batch_merkle_proof` is never used [INFO] [stdout] --> src/merkle.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn batch_merkle_proof(leaves: &[String], indices: &[usize]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "76ba89579759caad3835ce70e403333ad9f04f93236b8bd3f809056c9be469c2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "76ba89579759caad3835ce70e403333ad9f04f93236b8bd3f809056c9be469c2", kill_on_drop: false }` [INFO] [stdout] 76ba89579759caad3835ce70e403333ad9f04f93236b8bd3f809056c9be469c2