[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] testing nsvoriginals/xvii against try#0abe69e6c16114311cc2700e972492e64d69c28f for pr-154065-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnsvoriginals%2Fxvii" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-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-6-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/nsvoriginals/xvii on toolchain 0abe69e6c16114311cc2700e972492e64d69c28f
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0abe69e6c16114311cc2700e972492e64d69c28f" "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" "+0abe69e6c16114311cc2700e972492e64d69c28f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,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" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+0abe69e6c16114311cc2700e972492e64d69c28f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 712c0079233a49d44f4a521e0f7a420c5d3d366c3cf61fd206358032ebe8c974
[INFO] running `Command { std: "docker" "start" "-a" "712c0079233a49d44f4a521e0f7a420c5d3d366c3cf61fd206358032ebe8c974", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "712c0079233a49d44f4a521e0f7a420c5d3d366c3cf61fd206358032ebe8c974", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "712c0079233a49d44f4a521e0f7a420c5d3d366c3cf61fd206358032ebe8c974", kill_on_drop: false }`
[INFO] [stdout] 712c0079233a49d44f4a521e0f7a420c5d3d366c3cf61fd206358032ebe8c974
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,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" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-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" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+0abe69e6c16114311cc2700e972492e64d69c28f" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] d498d6aad35f31d2005e6734bd9c85f23d420d8218ba1cc09d3303113b2ab381
[INFO] running `Command { std: "docker" "start" "-a" "d498d6aad35f31d2005e6734bd9c85f23d420d8218ba1cc09d3303113b2ab381", 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]    Compiling cfg-if v1.0.3
[INFO] [stderr]    Compiling smallvec v1.15.1
[INFO] [stderr]    Compiling http v1.3.1
[INFO] [stderr]    Compiling find-msvc-tools v0.1.1
[INFO] [stderr]    Compiling memchr v2.7.5
[INFO] [stderr]    Compiling log v0.4.28
[INFO] [stderr]    Compiling generic-array v0.14.7
[INFO] [stderr]    Compiling sync_wrapper v1.0.2
[INFO] [stderr]    Compiling regex-syntax v0.8.6
[INFO] [stderr]    Compiling serde_json v1.0.143
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling matchit v0.7.3
[INFO] [stderr]    Compiling humantime v2.3.0
[INFO] [stderr]    Compiling bitflags v2.9.4
[INFO] [stderr]    Compiling tracing v0.1.41
[INFO] [stderr]    Compiling cc v1.2.36
[INFO] [stderr]    Compiling tower v0.4.13
[INFO] [stderr]    Compiling aho-corasick v1.1.3
[INFO] [stderr]    Compiling http-body v1.0.1
[INFO] [stderr]    Compiling quote v1.0.40
[INFO] [stderr]    Compiling block-buffer v0.10.4
[INFO] [stderr]    Compiling crypto-common v0.1.6
[INFO] [stderr]    Compiling http-body-util v0.1.3
[INFO] [stderr]    Compiling tower-http v0.5.2
[INFO] [stderr]    Compiling digest v0.10.7
[INFO] [stderr]    Compiling syn v2.0.106
[INFO] [stderr]    Compiling sha2 v0.10.9
[INFO] [stderr]    Compiling sha3 v0.10.8
[INFO] [stderr]    Compiling ripemd v0.1.3
[INFO] [stderr]    Compiling ring v0.17.14
[INFO] [stderr]    Compiling blake3 v1.8.2
[INFO] [stderr]    Compiling parking_lot_core v0.9.11
[INFO] [stderr]    Compiling socket2 v0.6.0
[INFO] [stderr]    Compiling mio v1.0.4
[INFO] [stderr]    Compiling signal-hook-registry v1.4.6
[INFO] [stderr]    Compiling getrandom v0.2.16
[INFO] [stderr]    Compiling is-terminal v0.4.16
[INFO] [stderr]    Compiling getrandom v0.3.3
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling parking_lot v0.12.4
[INFO] [stderr]    Compiling uuid v1.18.1
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling regex-automata v0.4.10
[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]    Compiling regex v1.11.2
[INFO] [stderr]    Compiling env_logger v0.10.2
[INFO] [stderr]    Compiling tokio v1.47.1
[INFO] [stderr]    Compiling axum-core v0.4.5
[INFO] [stderr]    Compiling serde v1.0.219
[INFO] [stderr]    Compiling serde_path_to_error v0.1.17
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling chrono v0.4.42
[INFO] [stderr]    Compiling bincode v1.3.3
[INFO] [stderr]    Compiling hyper v1.7.0
[INFO] [stderr]    Compiling tower v0.5.2
[INFO] [stderr]    Compiling hyper-util v0.1.16
[INFO] [stderr]    Compiling axum v0.7.9
[INFO] [stderr]    Compiling 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 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: 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<bool>,
[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<u64> {
[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<String, serde_json::Error> {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 283 |     pub fn from_json(json: &str) -> Result<Self, serde_json::Error> {
[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<Vec<String>> {
[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<Block> {
[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<usize>) -> 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<String, serde_json::Error> {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 370 |     pub fn from_json(json: &str) -> Result<Self, serde_json::Error> {
[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<Transaction> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 458 |     pub fn get_transactions_for_block(&mut self, max_count: usize, max_size: usize) -> Vec<Transaction> {
[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<u64, String> {
[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<Self, Box<dyn std::error::Error + Send + Sync>> {
[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<Vec<String>> {
[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] [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<Vec<u8>, 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<String, u64>,
[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<u64, String> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 211 |     pub fn rotate_validators(&mut self) -> Vec<String> {
[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<ValidatorPerformance> {
[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<String, serde_json::Error> {
[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<MerkleProof> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 40.38s
[INFO] running `Command { std: "docker" "inspect" "d498d6aad35f31d2005e6734bd9c85f23d420d8218ba1cc09d3303113b2ab381", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d498d6aad35f31d2005e6734bd9c85f23d420d8218ba1cc09d3303113b2ab381", kill_on_drop: false }`
[INFO] [stdout] d498d6aad35f31d2005e6734bd9c85f23d420d8218ba1cc09d3303113b2ab381
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,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" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-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" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+0abe69e6c16114311cc2700e972492e64d69c28f" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 813f3d0d9a6666b199930d3f563610570e5c45c50f277862e53915e09dbf2efa
[INFO] running `Command { std: "docker" "start" "-a" "813f3d0d9a6666b199930d3f563610570e5c45c50f277862e53915e09dbf2efa", kill_on_drop: false }`
[INFO] [stderr]    Compiling serde v1.0.219
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling half v2.6.0
[INFO] [stderr]    Compiling ciborium-io v0.2.2
[INFO] [stderr]    Compiling plotters-backend v0.3.7
[INFO] [stderr]    Compiling bitflags v2.9.4
[INFO] [stderr]    Compiling rustix v1.1.2
[INFO] [stderr]    Compiling clap_builder v4.5.47
[INFO] [stderr]    Compiling itertools v0.10.5
[INFO] [stderr]    Compiling cast v0.3.0
[INFO] [stderr]    Compiling same-file v1.0.6
[INFO] [stderr]    Compiling linux-raw-sys v0.11.0
[INFO] [stderr]    Compiling anes v0.1.6
[INFO] [stderr]    Compiling oorandom v11.1.5
[INFO] [stderr]    Compiling tower-http v0.5.2
[INFO] [stderr]    Compiling walkdir v2.5.0
[INFO] [stderr]    Compiling plotters-svg v0.3.7
[INFO] [stderr]    Compiling ciborium-ll v0.2.2
[INFO] [stderr]    Compiling plotters v0.3.7
[INFO] [stderr]    Compiling criterion-plot v0.5.0
[INFO] [stderr]    Compiling clap v4.5.47
[INFO] [stderr]    Compiling tempfile v3.22.0
[INFO] [stderr]    Compiling serde_json v1.0.143
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling serde_path_to_error v0.1.17
[INFO] [stderr]    Compiling ciborium v0.2.2
[INFO] [stderr]    Compiling chrono v0.4.42
[INFO] [stderr]    Compiling bincode v1.3.3
[INFO] [stderr]    Compiling tinytemplate v1.2.1
[INFO] [stderr]    Compiling axum v0.7.9
[INFO] [stderr]    Compiling criterion v0.5.1
[INFO] [stderr]    Compiling 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 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: 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<bool>,
[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<u64> {
[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<String, serde_json::Error> {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 283 |     pub fn from_json(json: &str) -> Result<Self, serde_json::Error> {
[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<Vec<String>> {
[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<Block> {
[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<usize>) -> 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<String, serde_json::Error> {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 370 |     pub fn from_json(json: &str) -> Result<Self, serde_json::Error> {
[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<Transaction> {
[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<u64, String> {
[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<Vec<u8>, 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<String, u64>,
[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<u64, String> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 211 |     pub fn rotate_validators(&mut self) -> Vec<String> {
[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<ValidatorPerformance> {
[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<String, serde_json::Error> {
[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<MerkleProof> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 18.45s
[INFO] running `Command { std: "docker" "inspect" "813f3d0d9a6666b199930d3f563610570e5c45c50f277862e53915e09dbf2efa", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "813f3d0d9a6666b199930d3f563610570e5c45c50f277862e53915e09dbf2efa", kill_on_drop: false }`
[INFO] [stdout] 813f3d0d9a6666b199930d3f563610570e5c45c50f277862e53915e09dbf2efa
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,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" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-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" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+0abe69e6c16114311cc2700e972492e64d69c28f" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 6385ae7c70dbedd0293c00da2606f23dd2735d14a47dbefa22c10831816d1793
[INFO] running `Command { std: "docker" "start" "-a" "6385ae7c70dbedd0293c00da2606f23dd2735d14a47dbefa22c10831816d1793", kill_on_drop: false }`
[INFO] [stderr] warning: unused import: `AdvancedHasher`
[INFO] [stderr]  --> src/blockchain.rs:4:21
[INFO] [stderr]   |
[INFO] [stderr] 4 | use crate::crypto::{AdvancedHasher, MerkleTree};
[INFO] [stderr]   |                     ^^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `SystemTime` and `UNIX_EPOCH`
[INFO] [stderr]  --> src/blockchain.rs:7:17
[INFO] [stderr]   |
[INFO] [stderr] 7 | use std::time::{SystemTime, UNIX_EPOCH};
[INFO] [stderr]   |                 ^^^^^^^^^^  ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `crate::transaction::Transaction`
[INFO] [stderr]  --> src/consensus.rs:2:5
[INFO] [stderr]   |
[INFO] [stderr] 2 | use crate::transaction::Transaction;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `crate::block::Block`
[INFO] [stderr]  --> src/mempool.rs:1:5
[INFO] [stderr]   |
[INFO] [stderr] 1 | use crate::block::Block;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `crate::crypto::AdvancedHasher`
[INFO] [stderr]  --> src/mempool.rs:3:5
[INFO] [stderr]   |
[INFO] [stderr] 3 | use crate::crypto::AdvancedHasher;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `crate::consensus::HybridConsensus`
[INFO] [stderr]  --> src/mempool.rs:4:5
[INFO] [stderr]   |
[INFO] [stderr] 4 | use crate::consensus::HybridConsensus;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `crate::transaction::Transaction`
[INFO] [stderr]  --> src/validator.rs:2:5
[INFO] [stderr]   |
[INFO] [stderr] 2 | use crate::transaction::Transaction;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `crate::crypto::AdvancedHasher`
[INFO] [stderr]  --> src/validator.rs:3:5
[INFO] [stderr]   |
[INFO] [stderr] 3 | use crate::crypto::AdvancedHasher;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `crate::crypto::AdvancedHasher`
[INFO] [stderr]  --> src/merkle.rs:1:5
[INFO] [stderr]   |
[INFO] [stderr] 1 | use crate::crypto::AdvancedHasher;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `block`
[INFO] [stderr]    --> src/blockchain.rs:287:74
[INFO] [stderr]     |
[INFO] [stderr] 287 |     fn process_transaction_effects(&mut self, transaction: &Transaction, block: &Block) {
[INFO] [stderr]     |                                                                          ^^^^^ help: if this is intentional, prefix it with an underscore: `_block`
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]    --> src/blockchain.rs:486:13
[INFO] [stderr]     |
[INFO] [stderr] 486 |         let mut reorg_blocks = vec![new_chain_tip];
[INFO] [stderr]     |             ----^^^^^^^^^^^^
[INFO] [stderr]     |             |
[INFO] [stderr]     |             help: remove this `mut`
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `prev_block`
[INFO] [stderr]    --> src/consensus.rs:198:52
[INFO] [stderr]     |
[INFO] [stderr] 198 |     fn validate_hybrid_score(&self, block: &Block, prev_block: &Block) -> Result<(), String> {
[INFO] [stderr]     |                                                    ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prev_block`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `stake_proof`
[INFO] [stderr]    --> src/consensus.rs:252:13
[INFO] [stderr]     |
[INFO] [stderr] 252 |         let stake_proof = self.create_stake_proof(&block, validator_stake)?;
[INFO] [stderr]     |             ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stake_proof`
[INFO] [stderr] 
[INFO] [stderr] warning: field `include_pending` is never read
[INFO] [stderr]   --> src/main.rs:36:5
[INFO] [stderr]    |
[INFO] [stderr] 33 | struct QueryParams {
[INFO] [stderr]    |        ----------- field in this struct
[INFO] [stderr] ...
[INFO] [stderr] 36 |     include_pending: Option<bool>,
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `QueryParams` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stderr]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: multiple associated items are never used
[INFO] [stderr]    --> src/block.rs:201:12
[INFO] [stderr]     |
[INFO] [stderr]  29 | impl Block {
[INFO] [stderr]     | ---------- associated items in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 201 |     pub fn get_transaction(&self, tx_id: &str) -> Option<&Transaction> {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 205 |     pub fn has_transaction(&self, tx_id: &str) -> bool {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 209 |     pub fn get_coinbase_transaction(&self) -> Option<&Transaction> {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 213 |     pub fn get_transaction_count(&self) -> usize {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 217 |     pub fn get_total_value_transferred(&self) -> u64 {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 224 |     pub fn get_block_reward(&self) -> u64 {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 230 |     pub fn calculate_difficulty_target(&self) -> String {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 234 |     pub fn meets_difficulty(&self) -> bool {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 239 |     pub fn get_block_time(&self, prev_block: Option<&Block>) -> Option<u64> {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 247 |     pub fn calculate_fees_per_gas(&self) -> f64 {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 255 |     pub fn get_utilization_rate(&self) -> f64 {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 263 |     pub fn create_block_summary(&self) -> BlockSummary {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 279 |     pub fn to_json(&self) -> Result<String, serde_json::Error> {
[INFO] [stderr]     |            ^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 283 |     pub fn from_json(json: &str) -> Result<Self, serde_json::Error> {
[INFO] [stderr]     |            ^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 287 |     pub fn verify_transaction_inclusion(&self, tx_id: &str, merkle_proof: &[String]) -> bool {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 295 |     pub fn get_merkle_proof(&self, tx_id: &str) -> Option<Vec<String>> {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 308 |     pub fn calculate_block_weight(&self) -> u64 {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 314 |     pub fn is_full(&self, max_size: usize, max_gas: u64) -> bool {
[INFO] [stderr]     |            ^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 318 |     pub fn can_fit_transaction(&self, tx: &Transaction, max_size: usize, max_gas: u64) -> bool {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `BlockSummary` is never constructed
[INFO] [stderr]    --> src/block.rs:326:12
[INFO] [stderr]     |
[INFO] [stderr] 326 | pub struct BlockSummary {
[INFO] [stderr]     |            ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `BlockHeader` is never constructed
[INFO] [stderr]    --> src/block.rs:341:12
[INFO] [stderr]     |
[INFO] [stderr] 341 | pub struct BlockHeader {
[INFO] [stderr]     |            ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: multiple methods are never used
[INFO] [stderr]    --> src/blockchain.rs:347:12
[INFO] [stderr]     |
[INFO] [stderr]  88 | impl AdvancedBlockchain {
[INFO] [stderr]     | ----------------------- methods in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 347 |     pub fn calculate_network_hashrate(&self) -> f64 {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 365 |     pub fn get_stake(&self, address: &str) -> u64 {
[INFO] [stderr]     |            ^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 373 |     pub fn is_chain_valid(&self) -> bool {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 414 |     pub fn get_block_by_index(&self, index: u64) -> Option<&Block> {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 418 |     pub fn get_transaction_by_id(&self, tx_id: &str) -> Option<(&Transaction, &Block)> {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 429 |     pub fn get_transactions_by_address(&self, address: &str) -> Vec<(&Transaction, &Block)> {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 443 |     pub fn get_utxos_for_address(&self, address: &str) -> Vec<&UTXO> {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 452 |     pub fn fork_choice_rule(&self, competing_blocks: &[Block]) -> Option<Block> {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 471 |     fn calculate_block_score(&self, block: &Block) -> f64 {
[INFO] [stderr]     |        ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 477 |     pub fn handle_orphaned_block(&mut self, block: Block) {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 484 |     pub fn reorganize_chain(&mut self, new_chain_tip: Block) -> Result<(), String> {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 505 |     pub fn get_mempool_transactions(&self, limit: Option<usize>) -> Vec<&Transaction> {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 513 |     pub fn estimate_transaction_fee(&self, transaction_size: usize, priority: TransactionPriority) -> u64 {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 527 |     pub fn get_blockchain_info(&self) -> BlockchainInfo {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `BlockchainInfo` is never constructed
[INFO] [stderr]    --> src/blockchain.rs:544:12
[INFO] [stderr]     |
[INFO] [stderr] 544 | pub struct BlockchainInfo {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: enum `TransactionPriority` is never used
[INFO] [stderr]    --> src/blockchain.rs:558:10
[INFO] [stderr]     |
[INFO] [stderr] 558 | pub enum TransactionPriority {
[INFO] [stderr]     |          ^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: multiple associated items are never used
[INFO] [stderr]    --> src/transaction.rs:105:12
[INFO] [stderr]     |
[INFO] [stderr]  44 | impl Transaction {
[INFO] [stderr]     | ---------------- associated items in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 105 |     pub fn create_stake_transaction(
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 146 |     pub fn create_unstake_transaction(
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 186 |     pub fn create_smart_contract_transaction(
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 224 |     pub fn create_multi_signature_transaction(
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 331 |     pub fn is_stake_transaction(&self) -> bool {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 335 |     pub fn is_contract_transaction(&self) -> bool {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 340 |     pub fn get_total_output_value(&self) -> u64 {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 344 |     pub fn get_effective_gas_price(&self) -> u64 {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 366 |     pub fn to_json(&self) -> Result<String, serde_json::Error> {
[INFO] [stderr]     |            ^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 370 |     pub fn from_json(json: &str) -> Result<Self, serde_json::Error> {
[INFO] [stderr]     |            ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `StakeData` is never constructed
[INFO] [stderr]    --> src/transaction.rs:376:12
[INFO] [stderr]     |
[INFO] [stderr] 376 | pub struct StakeData {
[INFO] [stderr]     |            ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `UnstakeData` is never constructed
[INFO] [stderr]    --> src/transaction.rs:383:12
[INFO] [stderr]     |
[INFO] [stderr] 383 | pub struct UnstakeData {
[INFO] [stderr]     |            ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `MultiSigData` is never constructed
[INFO] [stderr]    --> src/transaction.rs:389:12
[INFO] [stderr]     |
[INFO] [stderr] 389 | pub struct MultiSigData {
[INFO] [stderr]     |            ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: methods `remove_transaction`, `get_pending_transactions`, `clear`, and `total_fees` are never used
[INFO] [stderr]    --> src/transaction.rs:450:12
[INFO] [stderr]     |
[INFO] [stderr] 402 | impl TransactionPool {
[INFO] [stderr]     | -------------------- methods in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 450 |     pub fn remove_transaction(&mut self, tx_id: &str) -> Option<Transaction> {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 486 |     pub fn get_pending_transactions(&self) -> &[Transaction] {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 490 |     pub fn clear(&mut self) {
[INFO] [stderr]     |            ^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 498 |     pub fn total_fees(&self) -> u64 {
[INFO] [stderr]     |            ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `ConsensusChallenge` is never constructed
[INFO] [stderr]   --> src/consensus.rs:66:12
[INFO] [stderr]    |
[INFO] [stderr] 66 | pub struct ConsensusChallenge {
[INFO] [stderr]    |            ^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: methods `slash_validator`, `get_validator_power`, `get_total_stake`, and `is_validator_active` are never used
[INFO] [stderr]    --> src/consensus.rs:320:12
[INFO] [stderr]     |
[INFO] [stderr]  76 | impl HybridConsensus {
[INFO] [stderr]     | -------------------- methods in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 320 |     pub fn slash_validator(&mut self, validator_id: &str, reason: String) -> Result<u64, String> {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 367 |     pub fn get_validator_power(&self, validator_id: &str) -> f64 {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 375 |     pub fn get_total_stake(&self) -> u64 {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 379 |     pub fn is_validator_active(&self, validator_id: &str) -> bool {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated functions `sha512`, `sha3_256`, `ripemd160`, `double_sha256`, `pow_hash`, and `memory_hard_hash` are never used
[INFO] [stderr]   --> src/crypto.rs:22:12
[INFO] [stderr]    |
[INFO] [stderr] 15 | impl AdvancedHasher {
[INFO] [stderr]    | ------------------- associated functions in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 22 |     pub fn sha512(data: &[u8]) -> String {
[INFO] [stderr]    |            ^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 34 |     pub fn sha3_256(data: &[u8]) -> String {
[INFO] [stderr]    |            ^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 45 |     pub fn ripemd160(data: &[u8]) -> String {
[INFO] [stderr]    |            ^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 51 |     pub fn double_sha256(data: &[u8]) -> String {
[INFO] [stderr]    |            ^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 67 |     pub fn pow_hash(data: &[u8], nonce: u64, difficulty: u32) -> (String, bool) {
[INFO] [stderr]    |            ^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 74 |     pub fn memory_hard_hash(data: &[u8], memory_size: usize) -> String {
[INFO] [stderr]    |            ^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: method `get_public_key_hex` is never used
[INFO] [stderr]    --> src/crypto.rs:136:12
[INFO] [stderr]     |
[INFO] [stderr] 111 | impl DigitalSigner {
[INFO] [stderr]     | ------------------ method in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 136 |     pub fn get_public_key_hex(&self) -> String {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: field `difficulty` is never read
[INFO] [stderr]    --> src/crypto.rs:258:9
[INFO] [stderr]     |
[INFO] [stderr] 257 | pub struct ProofOfWork {
[INFO] [stderr]     |            ----------- field in this struct
[INFO] [stderr] 258 |     pub difficulty: u32,
[INFO] [stderr]     |         ^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `ProofOfWork` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: function `bytes_to_hex` is never used
[INFO] [stderr]    --> src/crypto.rs:294:8
[INFO] [stderr]     |
[INFO] [stderr] 294 | pub fn bytes_to_hex(bytes: &[u8]) -> String {
[INFO] [stderr]     |        ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `hex_to_bytes` is never used
[INFO] [stderr]    --> src/crypto.rs:302:8
[INFO] [stderr]     |
[INFO] [stderr] 302 | pub fn hex_to_bytes(hex: &str) -> Result<Vec<u8>, hex::FromHexError> {
[INFO] [stderr]     |        ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: methods `cleanup_expired`, `get_transaction`, `contains_transaction`, `get_total_gas`, and `get_account_transactions` are never used
[INFO] [stderr]    --> src/mempool.rs:224:12
[INFO] [stderr]     |
[INFO] [stderr]  69 | impl AdvancedMempool {
[INFO] [stderr]     | -------------------- methods in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 224 |     pub fn cleanup_expired(&mut self) {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 249 |     pub fn get_transaction(&self, hash: &str) -> Option<&Transaction> {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 253 |     pub fn contains_transaction(&self, hash: &str) -> bool {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 261 |     pub fn get_total_gas(&self) -> u64 {
[INFO] [stderr]     |            ^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 265 |     pub fn get_account_transactions(&self, address: &str) -> Vec<&Transaction> {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `calculate_performance_score_standalone` is never used
[INFO] [stderr]   --> src/validator.rs:20:4
[INFO] [stderr]    |
[INFO] [stderr] 20 | fn calculate_performance_score_standalone(validator: &ValidatorInfo) -> f64 {
[INFO] [stderr]    |    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `ValidatorPerformance` is never constructed
[INFO] [stderr]   --> src/validator.rs:35:12
[INFO] [stderr]    |
[INFO] [stderr] 35 | pub struct ValidatorPerformance {
[INFO] [stderr]    |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: fields `rotation_epoch`, `current_epoch`, and `block_rewards` are never read
[INFO] [stderr]   --> src/validator.rs:48:9
[INFO] [stderr]    |
[INFO] [stderr] 44 | pub struct ValidatorSet {
[INFO] [stderr]    |            ------------ fields in this struct
[INFO] [stderr] ...
[INFO] [stderr] 48 |     pub rotation_epoch: u64,
[INFO] [stderr]    |         ^^^^^^^^^^^^^^
[INFO] [stderr] 49 |     pub current_epoch: u64,
[INFO] [stderr]    |         ^^^^^^^^^^^^^
[INFO] [stderr] 50 |     pub block_rewards: HashMap<String, u64>,
[INFO] [stderr]    |         ^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `ValidatorSet` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: multiple methods are never used
[INFO] [stderr]    --> src/validator.rs:138:12
[INFO] [stderr]     |
[INFO] [stderr]  53 | impl ValidatorSet {
[INFO] [stderr]     | ----------------- methods in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 138 |     pub fn validate_block(&mut self, block: &Block, prev_block: Option<&Block>) -> Result<(), String> {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 159 |     pub fn process_block_reward(&mut self, block: &Block, reward_amount: u64) -> Result<(), String> {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 177 |     pub fn slash_validator(&mut self, address: &str, reason: String) -> Result<u64, String> {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 211 |     pub fn rotate_validators(&mut self) -> Vec<String> {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 230 |     fn calculate_performance_score(&self, validator: &ValidatorInfo) -> f64 {
[INFO] [stderr]     |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 259 |     pub fn get_validator_performance(&self, address: &str) -> Option<ValidatorPerformance> {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 278 |     pub fn get_active_validators(&self) -> Vec<&ValidatorInfo> {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `MerkleProof` is never constructed
[INFO] [stderr]  --> src/merkle.rs:4:12
[INFO] [stderr]   |
[INFO] [stderr] 4 | pub struct MerkleProof {
[INFO] [stderr]   |            ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: methods `verify` and `to_json` are never used
[INFO] [stderr]   --> src/merkle.rs:11:12
[INFO] [stderr]    |
[INFO] [stderr] 10 | impl MerkleProof {
[INFO] [stderr]    | ---------------- methods in this implementation
[INFO] [stderr] 11 |     pub fn verify(&self, leaf: &str) -> bool {
[INFO] [stderr]    |            ^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 15 |     pub fn to_json(&self) -> Result<String, serde_json::Error> {
[INFO] [stderr]    |            ^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `batch_merkle_proof` is never used
[INFO] [stderr]   --> src/merkle.rs:20:8
[INFO] [stderr]    |
[INFO] [stderr] 20 | pub fn batch_merkle_proof(leaves: &[String], indices: &[usize]) -> Vec<MerkleProof> {
[INFO] [stderr]    |        ^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: `xvii-chain` (bin "xvii-chain" test) generated 40 warnings (run `cargo fix --bin "xvii-chain" -p xvii-chain --tests` to apply 13 suggestions)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.32s
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/xvii_chain-b35ec0fd2fac3c1a)
[INFO] [stdout] 
[INFO] [stdout] running 13 tests
[INFO] [stdout] test crypto::tests::test_advanced_hashing ... ok
[INFO] [stdout] test crypto::tests::test_merkle_tree ... ok
[INFO] [stdout] test block::tests::test_merkle_root_calculation ... ok
[INFO] [stdout] test crypto::tests::test_digital_signature ... ok
[INFO] [stdout] test block::tests::test_block_validation ... ok
[INFO] [stdout] test transaction::tests::test_transaction_pool ... ok
[INFO] [stdout] test transaction::tests::test_coinbase_transaction ... ok
[INFO] [stdout] test transaction::tests::test_transaction_signing ... ok
[INFO] [stdout] test transaction::tests::test_transaction_creation ... ok
[INFO] [stdout] test crypto::tests::test_proof_of_work ... ok
[INFO] [stdout] test block::tests::test_block_mining ... ok
[INFO] [stdout] test block::tests::test_block_creation ... ok
[INFO] [stdout] test block::tests::test_genesis_block ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 13 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.07s
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "6385ae7c70dbedd0293c00da2606f23dd2735d14a47dbefa22c10831816d1793", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6385ae7c70dbedd0293c00da2606f23dd2735d14a47dbefa22c10831816d1793", kill_on_drop: false }`
[INFO] [stdout] 6385ae7c70dbedd0293c00da2606f23dd2735d14a47dbefa22c10831816d1793
