[INFO] cloning repository https://github.com/rockcoolsaint/mini-btc [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rockcoolsaint/mini-btc" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frockcoolsaint%2Fmini-btc", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frockcoolsaint%2Fmini-btc'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 73cb05f3703cdb19fea40774605af1a697dee5e8 [INFO] building rockcoolsaint/mini-btc against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frockcoolsaint%2Fmini-btc" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/rockcoolsaint/mini-btc [INFO] finished tweaking git repo https://github.com/rockcoolsaint/mini-btc [INFO] tweaked toml for git repo https://github.com/rockcoolsaint/mini-btc written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/rockcoolsaint/mini-btc on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/rockcoolsaint/mini-btc 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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rand v0.3.23 [INFO] [stderr] Downloaded rustc-serialize v0.3.25 [INFO] [stderr] Downloaded bitcoin_hashes v0.7.6 [INFO] [stderr] Downloaded bitcoincash-addr v0.5.2 [INFO] [stderr] Downloaded rust-crypto v0.2.36 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 56b4168af18519de313620ea343234974721cb2c1a57e39461b5f0d1fee87684 [INFO] running `Command { std: "docker" "start" "-a" "56b4168af18519de313620ea343234974721cb2c1a57e39461b5f0d1fee87684", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "56b4168af18519de313620ea343234974721cb2c1a57e39461b5f0d1fee87684", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "56b4168af18519de313620ea343234974721cb2c1a57e39461b5f0d1fee87684", kill_on_drop: false }` [INFO] [stdout] 56b4168af18519de313620ea343234974721cb2c1a57e39461b5f0d1fee87684 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4f5a4e1baee5d7af26c421a26ad003e2bdb38d1fa71983b6af8818dfb94a29a0 [INFO] running `Command { std: "docker" "start" "-a" "4f5a4e1baee5d7af26c421a26ad003e2bdb38d1fa71983b6af8818dfb94a29a0", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling anstyle v1.0.7 [INFO] [stderr] Compiling cc v1.0.99 [INFO] [stderr] Compiling regex-syntax v0.8.4 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.0 [INFO] [stderr] Compiling colorchoice v1.0.1 [INFO] [stderr] Compiling anstyle-parse v0.2.4 [INFO] [stderr] Compiling anstyle-query v1.1.0 [INFO] [stderr] Compiling gimli v0.29.0 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Compiling syn v2.0.66 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling miniz_oxide v0.7.4 [INFO] [stderr] Compiling rust-crypto v0.2.36 [INFO] [stderr] Compiling object v0.36.0 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Compiling clap_lex v0.7.1 [INFO] [stderr] Compiling time v0.1.45 [INFO] [stderr] Compiling fs2 v0.4.3 [INFO] [stderr] Compiling anstream v0.6.14 [INFO] [stderr] Compiling rustc-serialize v0.3.25 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling bitcoin_hashes v0.7.6 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling merkle-cbt v0.3.2 [INFO] [stderr] Compiling sled v0.34.7 [INFO] [stderr] Compiling clap_builder v4.5.7 [INFO] [stderr] Compiling rand v0.3.23 [INFO] [stderr] Compiling backtrace v0.3.73 [INFO] [stderr] Compiling regex-automata v0.4.7 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling addr2line v0.22.0 [INFO] [stderr] Compiling serde_derive v1.0.203 [INFO] [stderr] Compiling clap v4.5.7 [INFO] [stderr] Compiling regex v1.10.5 [INFO] [stderr] Compiling env_filter v0.1.0 [INFO] [stderr] Compiling bitcoincash-addr v0.5.2 [INFO] [stderr] Compiling env_logger v0.11.3 [INFO] [stderr] Compiling failure v0.1.8 [INFO] [stderr] Compiling serde v1.0.203 [INFO] [stderr] Compiling serde_json v1.0.117 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling bitcoin-clone v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `TXOutput` [INFO] [stdout] --> src/blockchain.rs:10:17 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::tx::{TXOutput, TXOutputs}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Wallet` [INFO] [stdout] --> src/cli.rs:11:22 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::wallets::{Wallet, Wallets}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Wallets` [INFO] [stdout] --> src/transaction.rs:10:30 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::wallets::{Wallet, Wallets}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::blockchain::Blockchain` [INFO] [stdout] --> src/transaction.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::blockchain::Blockchain; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/tx.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::transaction::Transaction` [INFO] [stdout] --> src/tx.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::transaction::Transaction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TARGET_HEXT` is never used [INFO] [stdout] --> src/blockchain.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const TARGET_HEXT: usize = 4; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `find_unspent_transactions` and `sign_transacton` are never used [INFO] [stdout] --> src/blockchain.rs:109:6 [INFO] [stdout] | [INFO] [stdout] 30 | impl Blockchain { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 109 | fn find_unspent_transactions(&self, address: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 222 | pub fn sign_transacton(&self, tx: &mut Transaction, private_key: &[u8]) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `sign` is never used [INFO] [stdout] --> src/transaction.rs:135:10 [INFO] [stdout] | [INFO] [stdout] 24 | impl Transaction { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 135 | pub fn sign( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `can_unlock_output_with` is never used [INFO] [stdout] --> src/tx.rs:35:10 [INFO] [stdout] | [INFO] [stdout] 33 | impl TXInput { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 34 | /// CanUnlockOutputWith checks whether the address initiated the transaction [INFO] [stdout] 35 | pub fn can_unlock_output_with(&self, unlocking_data: &[u8]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `can_be_unlock_with` is never used [INFO] [stdout] --> src/tx.rs:50:10 [INFO] [stdout] | [INFO] [stdout] 43 | impl TXOutput { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn can_be_unlock_with(&self, unlocking_data: &[u8]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `spent_TXOs` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:110:13 [INFO] [stdout] | [INFO] [stdout] 110 | let mut spent_TXOs: HashMap> = HashMap::new(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `spent_txos` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `unspend_TXs` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:111:13 [INFO] [stdout] | [INFO] [stdout] 111 | let mut unspend_TXs: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `unspend_txs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `find_UTXO` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 148 | pub fn find_UTXO(&self) -> HashMap { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `find_utxo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/blockchain.rs:193:15 [INFO] [stdout] | [INFO] [stdout] 193 | pub fn iter(&self) -> BlockchainIter { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 193 | pub fn iter(&self) -> BlockchainIter<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_prev_TXs` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:212:6 [INFO] [stdout] | [INFO] [stdout] 212 | fn get_prev_TXs(&self, tx: &Transaction) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `get_prev_txs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `prev_TXs` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:213:13 [INFO] [stdout] | [INFO] [stdout] 213 | let mut prev_TXs = HashMap::new(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `prev_txs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `prev_TX` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:215:13 [INFO] [stdout] | [INFO] [stdout] 215 | let prev_TX = self.find_transacton(&vin.txid)?; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `prev_tx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `prev_TXs` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:223:9 [INFO] [stdout] | [INFO] [stdout] 223 | let prev_TXs = self.get_prev_TXs(tx)?; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `prev_txs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `prev_TXs` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:233:9 [INFO] [stdout] | [INFO] [stdout] 233 | let prev_TXs = self.get_prev_TXs(tx)?; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `prev_txs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `new_UTXO` should have a snake case name [INFO] [stdout] --> src/transaction.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn new_UTXO(wallet: &Wallet, to: &str, amount: i32, utxo: &UTXOSet) -> Result { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `new_utxo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `prev_TXs` should have a snake case name [INFO] [stdout] --> src/transaction.rs:101:24 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn verify(&self, prev_TXs: HashMap) -> Result { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `prev_txs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `prev_Tx` should have a snake case name [INFO] [stdout] --> src/transaction.rs:115:15 [INFO] [stdout] | [INFO] [stdout] 115 | let prev_Tx = prev_TXs.get(&self.vin[in_id].txid).unwrap(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `prev_tx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `prev_TXs` should have a snake case name [INFO] [stdout] --> src/transaction.rs:138:5 [INFO] [stdout] | [INFO] [stdout] 138 | prev_TXs: HashMap, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `prev_txs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `prev_Tx` should have a snake case name [INFO] [stdout] --> src/transaction.rs:152:13 [INFO] [stdout] | [INFO] [stdout] 152 | let prev_Tx = prev_TXs.get(&tx_copy.vin[in_id].txid).unwrap(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `prev_tx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `pubKey` should have a snake case name [INFO] [stdout] --> src/transaction.rs:206:21 [INFO] [stdout] | [INFO] [stdout] 206 | pub fn hash_pub_key(pubKey: &mut Vec) { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `pub_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `pubKey` should have a snake case name [INFO] [stdout] --> src/wallets.rs:46:21 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn hash_pub_key(pubKey: &mut Vec) { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `pub_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `find_UTXO` should have a snake case name [INFO] [stdout] --> src/utxoset.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn find_UTXO(&self, pub_key_hash: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `find_utxo` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 37.31s [INFO] running `Command { std: "docker" "inspect" "4f5a4e1baee5d7af26c421a26ad003e2bdb38d1fa71983b6af8818dfb94a29a0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4f5a4e1baee5d7af26c421a26ad003e2bdb38d1fa71983b6af8818dfb94a29a0", kill_on_drop: false }` [INFO] [stdout] 4f5a4e1baee5d7af26c421a26ad003e2bdb38d1fa71983b6af8818dfb94a29a0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 520f113828e69e0b4158e912eadeb0586687c469b36206ea5066efb5efb428f7 [INFO] running `Command { std: "docker" "start" "-a" "520f113828e69e0b4158e912eadeb0586687c469b36206ea5066efb5efb428f7", kill_on_drop: false }` [INFO] [stderr] Compiling bitcoin-clone v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `TXOutput` [INFO] [stdout] --> src/blockchain.rs:10:17 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::tx::{TXOutput, TXOutputs}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Wallet` [INFO] [stdout] --> src/cli.rs:11:22 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::wallets::{Wallet, Wallets}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Wallets` [INFO] [stdout] --> src/transaction.rs:10:30 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::wallets::{Wallet, Wallets}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::blockchain::Blockchain` [INFO] [stdout] --> src/transaction.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::blockchain::Blockchain; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/tx.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::transaction::Transaction` [INFO] [stdout] --> src/tx.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::transaction::Transaction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/blockchain.rs:293:9 [INFO] [stdout] | [INFO] [stdout] 293 | let mut b = Blockchain::new().unwrap(); [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: constant `TARGET_HEXT` is never used [INFO] [stdout] --> src/blockchain.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const TARGET_HEXT: usize = 4; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `find_unspent_transactions` and `sign_transacton` are never used [INFO] [stdout] --> src/blockchain.rs:109:6 [INFO] [stdout] | [INFO] [stdout] 30 | impl Blockchain { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 109 | fn find_unspent_transactions(&self, address: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 222 | pub fn sign_transacton(&self, tx: &mut Transaction, private_key: &[u8]) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `sign` is never used [INFO] [stdout] --> src/transaction.rs:135:10 [INFO] [stdout] | [INFO] [stdout] 24 | impl Transaction { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 135 | pub fn sign( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `can_unlock_output_with` is never used [INFO] [stdout] --> src/tx.rs:35:10 [INFO] [stdout] | [INFO] [stdout] 33 | impl TXInput { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 34 | /// CanUnlockOutputWith checks whether the address initiated the transaction [INFO] [stdout] 35 | pub fn can_unlock_output_with(&self, unlocking_data: &[u8]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `can_be_unlock_with` is never used [INFO] [stdout] --> src/tx.rs:50:10 [INFO] [stdout] | [INFO] [stdout] 43 | impl TXOutput { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn can_be_unlock_with(&self, unlocking_data: &[u8]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `spent_TXOs` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:110:13 [INFO] [stdout] | [INFO] [stdout] 110 | let mut spent_TXOs: HashMap> = HashMap::new(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `spent_txos` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `unspend_TXs` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:111:13 [INFO] [stdout] | [INFO] [stdout] 111 | let mut unspend_TXs: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `unspend_txs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `find_UTXO` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 148 | pub fn find_UTXO(&self) -> HashMap { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `find_utxo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/blockchain.rs:193:15 [INFO] [stdout] | [INFO] [stdout] 193 | pub fn iter(&self) -> BlockchainIter { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 193 | pub fn iter(&self) -> BlockchainIter<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_prev_TXs` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:212:6 [INFO] [stdout] | [INFO] [stdout] 212 | fn get_prev_TXs(&self, tx: &Transaction) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `get_prev_txs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `prev_TXs` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:213:13 [INFO] [stdout] | [INFO] [stdout] 213 | let mut prev_TXs = HashMap::new(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `prev_txs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `prev_TX` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:215:13 [INFO] [stdout] | [INFO] [stdout] 215 | let prev_TX = self.find_transacton(&vin.txid)?; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `prev_tx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `prev_TXs` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:223:9 [INFO] [stdout] | [INFO] [stdout] 223 | let prev_TXs = self.get_prev_TXs(tx)?; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `prev_txs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `prev_TXs` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:233:9 [INFO] [stdout] | [INFO] [stdout] 233 | let prev_TXs = self.get_prev_TXs(tx)?; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `prev_txs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `new_UTXO` should have a snake case name [INFO] [stdout] --> src/transaction.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn new_UTXO(wallet: &Wallet, to: &str, amount: i32, utxo: &UTXOSet) -> Result { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `new_utxo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `prev_TXs` should have a snake case name [INFO] [stdout] --> src/transaction.rs:101:24 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn verify(&self, prev_TXs: HashMap) -> Result { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `prev_txs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `prev_Tx` should have a snake case name [INFO] [stdout] --> src/transaction.rs:115:15 [INFO] [stdout] | [INFO] [stdout] 115 | let prev_Tx = prev_TXs.get(&self.vin[in_id].txid).unwrap(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `prev_tx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `prev_TXs` should have a snake case name [INFO] [stdout] --> src/transaction.rs:138:5 [INFO] [stdout] | [INFO] [stdout] 138 | prev_TXs: HashMap, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `prev_txs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `prev_Tx` should have a snake case name [INFO] [stdout] --> src/transaction.rs:152:13 [INFO] [stdout] | [INFO] [stdout] 152 | let prev_Tx = prev_TXs.get(&tx_copy.vin[in_id].txid).unwrap(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `prev_tx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `pubKey` should have a snake case name [INFO] [stdout] --> src/transaction.rs:206:21 [INFO] [stdout] | [INFO] [stdout] 206 | pub fn hash_pub_key(pubKey: &mut Vec) { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `pub_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `pubKey` should have a snake case name [INFO] [stdout] --> src/wallets.rs:46:21 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn hash_pub_key(pubKey: &mut Vec) { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `pub_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `find_UTXO` should have a snake case name [INFO] [stdout] --> src/utxoset.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn find_UTXO(&self, pub_key_hash: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `find_utxo` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.81s [INFO] running `Command { std: "docker" "inspect" "520f113828e69e0b4158e912eadeb0586687c469b36206ea5066efb5efb428f7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "520f113828e69e0b4158e912eadeb0586687c469b36206ea5066efb5efb428f7", kill_on_drop: false }` [INFO] [stdout] 520f113828e69e0b4158e912eadeb0586687c469b36206ea5066efb5efb428f7