[INFO] cloning repository https://github.com/kunal1purohit/Rust_Custom_Blockchain [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kunal1purohit/Rust_Custom_Blockchain" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkunal1purohit%2FRust_Custom_Blockchain", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkunal1purohit%2FRust_Custom_Blockchain'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0d07005415e806878b4e9c524c4c471f347c042c [INFO] checking kunal1purohit/Rust_Custom_Blockchain against try#95813608313bff49cfc1afc393a946a3c085b772 for pr-148946 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkunal1purohit%2FRust_Custom_Blockchain" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/kunal1purohit/Rust_Custom_Blockchain [INFO] finished tweaking git repo https://github.com/kunal1purohit/Rust_Custom_Blockchain [INFO] tweaked toml for git repo https://github.com/kunal1purohit/Rust_Custom_Blockchain written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/kunal1purohit/Rust_Custom_Blockchain on toolchain 95813608313bff49cfc1afc393a946a3c085b772 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+95813608313bff49cfc1afc393a946a3c085b772" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/kunal1purohit/Rust_Custom_Blockchain 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" "+95813608313bff49cfc1afc393a946a3c085b772" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking kunal1purohit/Rust_Custom_Blockchain against try#95813608313bff49cfc1afc393a946a3c085b772 for pr-148946 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkunal1purohit%2FRust_Custom_Blockchain" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/kunal1purohit/Rust_Custom_Blockchain [INFO] finished tweaking git repo https://github.com/kunal1purohit/Rust_Custom_Blockchain [INFO] tweaked toml for git repo https://github.com/kunal1purohit/Rust_Custom_Blockchain written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/kunal1purohit/Rust_Custom_Blockchain on toolchain 95813608313bff49cfc1afc393a946a3c085b772 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+95813608313bff49cfc1afc393a946a3c085b772" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/kunal1purohit/Rust_Custom_Blockchain 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" "+95813608313bff49cfc1afc393a946a3c085b772" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded bitcoincash-addr v0.5.2 [INFO] [stderr] Downloaded rustc-serialize v0.3.25 [INFO] [stderr] Downloaded env_logger v0.11.3 [INFO] [stderr] Downloaded merkle-cbt v0.3.2 [INFO] [stderr] Downloaded bitcoin_hashes v0.7.6 [INFO] [stderr] Downloaded clap v4.5.8 [INFO] [stderr] Downloaded clap_builder v4.5.8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+95813608313bff49cfc1afc393a946a3c085b772" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d575851bdabaec055506d6865163db8b1f7e04b474ee66f563d477d88e711b9b [INFO] running `Command { std: "docker" "start" "-a" "d575851bdabaec055506d6865163db8b1f7e04b474ee66f563d477d88e711b9b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d575851bdabaec055506d6865163db8b1f7e04b474ee66f563d477d88e711b9b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d575851bdabaec055506d6865163db8b1f7e04b474ee66f563d477d88e711b9b", kill_on_drop: false }` [INFO] [stdout] d575851bdabaec055506d6865163db8b1f7e04b474ee66f563d477d88e711b9b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+95813608313bff49cfc1afc393a946a3c085b772" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ec79d6be810495f95f61682ca90140ffdc9542698a5ea8d3391fd4bf850d4d4c [INFO] running `Command { std: "docker" "start" "-a" "ec79d6be810495f95f61682ca90140ffdc9542698a5ea8d3391fd4bf850d4d4c", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling serde v1.0.204 [INFO] [stderr] Compiling cc v1.0.105 [INFO] [stderr] Checking regex-syntax v0.8.4 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling gcc v0.3.55 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking gimli v0.29.0 [INFO] [stderr] Checking miniz_oxide v0.7.4 [INFO] [stderr] Checking object v0.36.1 [INFO] [stderr] Checking rustc-demangle v0.1.24 [INFO] [stderr] Compiling serde_json v1.0.120 [INFO] [stderr] Checking clap_builder v4.5.8 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking crc32fast v1.4.2 [INFO] [stderr] Checking rustc-serialize v0.3.25 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking bitcoin_hashes v0.7.6 [INFO] [stderr] Checking merkle-cbt v0.3.2 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Compiling rust-crypto v0.2.36 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking fs2 v0.4.3 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Checking time v0.1.45 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Compiling syn v2.0.69 [INFO] [stderr] Checking sled v0.34.7 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling backtrace v0.3.73 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking clap v4.5.8 [INFO] [stderr] Checking addr2line v0.22.0 [INFO] [stderr] Checking regex v1.10.5 [INFO] [stderr] Compiling serde_derive v1.0.204 [INFO] [stderr] Checking env_filter v0.1.0 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Checking env_logger v0.11.3 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Checking bitcoincash-addr v0.5.2 [INFO] [stderr] Checking failure v0.1.8 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking custom-chain v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `tx::TXOutput` [INFO] [stdout] --> src/blockchain.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::{tx::TXOutput, transaction::Transaction}; [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: `tx::TXOutput` [INFO] [stdout] --> src/blockchain.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::{tx::TXOutput, transaction::Transaction}; [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: `blockchain::Blockchain` [INFO] [stdout] --> src/transaction.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::{blockchain::Blockchain, error::Result}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `blockchain::Blockchain` [INFO] [stdout] --> src/transaction.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::{blockchain::Blockchain, error::Result}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/transaction.rs:45:11 [INFO] [stdout] | [INFO] [stdout] 45 | if(acc_v.0 < amount){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 45 - if(acc_v.0 < amount){ [INFO] [stdout] 45 + if acc_v.0 < amount { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/transaction.rs:45:11 [INFO] [stdout] | [INFO] [stdout] 45 | if(acc_v.0 < amount){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 45 - if(acc_v.0 < amount){ [INFO] [stdout] 45 + if acc_v.0 < amount { [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: `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: `bincode::serialize` [INFO] [stdout] --> src/utxoset.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use bincode::serialize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bincode::serialize` [INFO] [stdout] --> src/utxoset.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use bincode::serialize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/blockchain.rs:215:13 [INFO] [stdout] | [INFO] [stdout] 215 | 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: variable does not need to be mutable [INFO] [stdout] --> src/cli.rs:75:17 [INFO] [stdout] | [INFO] [stdout] 75 | let mut ws = Wallets::new()?; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/cli.rs:75:17 [INFO] [stdout] | [INFO] [stdout] 75 | let mut ws = Wallets::new()?; [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: `matches` [INFO] [stdout] --> src/cli.rs:58:21 [INFO] [stdout] | [INFO] [stdout] 58 | if let Some(ref matches) = matches.subcommand_matches("createwallet"){ [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_matches` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `matches` [INFO] [stdout] --> src/cli.rs:74:21 [INFO] [stdout] | [INFO] [stdout] 74 | if let Some(ref matches) = matches.subcommand_matches("listaddresses"){ [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_matches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `matches` [INFO] [stdout] --> src/cli.rs:58:21 [INFO] [stdout] | [INFO] [stdout] 58 | if let Some(ref matches) = matches.subcommand_matches("createwallet"){ [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_matches` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `matches` [INFO] [stdout] --> src/cli.rs:74:21 [INFO] [stdout] | [INFO] [stdout] 74 | if let Some(ref matches) = matches.subcommand_matches("listaddresses"){ [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_matches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/utxoset.rs:15:20 [INFO] [stdout] | [INFO] [stdout] 15 | if let Err(e) = std::fs::remove_dir_all("data/utxos"){ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/utxoset.rs:15:20 [INFO] [stdout] | [INFO] [stdout] 15 | if let Err(e) = std::fs::remove_dir_all("data/utxos"){ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `find_unspent_transactions` and `verify_transaction` are never used [INFO] [stdout] --> src/blockchain.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 24 | impl Blockchain{ [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 59 | fn find_unspent_transactions(&self, address:&[u8]) -> Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | pub fn verify_transaction(&self , tx: &mut Transaction)->Result{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `verify` is never used [INFO] [stdout] --> src/transaction.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl Transaction{ [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 119 | pub fn verify( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `can_unlock_output_with` is never used [INFO] [stdout] --> src/tx.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl TXInput{ [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 31 | //checks whether the address initiated with the transaction [INFO] [stdout] 32 | pub fn can_unlock_output_with(&self,unlocking_data:&[u8])->bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `find_UTXO` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn find_UTXO(&self [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `find_utxo` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/blockchain.rs:148:17 [INFO] [stdout] | [INFO] [stdout] 148 | 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] 148 | 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:166:8 [INFO] [stdout] | [INFO] [stdout] 166 | 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:167:17 [INFO] [stdout] | [INFO] [stdout] 167 | 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:169:17 [INFO] [stdout] | [INFO] [stdout] 169 | let prev_TX = self.find_transaction(&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:176:13 [INFO] [stdout] | [INFO] [stdout] 176 | 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:182:13 [INFO] [stdout] | [INFO] [stdout] 182 | 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: methods `find_unspent_transactions` and `verify_transaction` are never used [INFO] [stdout] --> src/blockchain.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 24 | impl Blockchain{ [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 59 | fn find_unspent_transactions(&self, address:&[u8]) -> Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | pub fn verify_transaction(&self , tx: &mut Transaction)->Result{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `verify` is never used [INFO] [stdout] --> src/transaction.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl Transaction{ [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 119 | pub fn verify( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `can_unlock_output_with` is never used [INFO] [stdout] --> src/tx.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl TXInput{ [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 31 | //checks whether the address initiated with the transaction [INFO] [stdout] 32 | pub fn can_unlock_output_with(&self,unlocking_data:&[u8])->bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `find_UTXO` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn find_UTXO(&self [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `find_utxo` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/blockchain.rs:148:17 [INFO] [stdout] | [INFO] [stdout] 148 | 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] 148 | 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:166:8 [INFO] [stdout] | [INFO] [stdout] 166 | 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:167:17 [INFO] [stdout] | [INFO] [stdout] 167 | 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:169:17 [INFO] [stdout] | [INFO] [stdout] 169 | let prev_TX = self.find_transaction(&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:176:13 [INFO] [stdout] | [INFO] [stdout] 176 | 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:182:13 [INFO] [stdout] | [INFO] [stdout] 182 | 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: unused `std::result::Result` that must be used [INFO] [stdout] --> src/cli.rs:140:13 [INFO] [stdout] | [INFO] [stdout] 140 | utxo_set.update(&new_block); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 140 | let _ = utxo_set.update(&new_block); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `new_UTXO` should have a snake case name [INFO] [stdout] --> src/transaction.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn new_UTXO(from:&str , to:&str , amount:i32 , bc:&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:122:9 [INFO] [stdout] | [INFO] [stdout] 122 | 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:135:17 [INFO] [stdout] | [INFO] [stdout] 135 | 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:159:9 [INFO] [stdout] | [INFO] [stdout] 159 | 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:172:17 [INFO] [stdout] | [INFO] [stdout] 172 | 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: unused `std::result::Result` that must be used [INFO] [stdout] --> src/cli.rs:140:13 [INFO] [stdout] | [INFO] [stdout] 140 | utxo_set.update(&new_block); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 140 | let _ = utxo_set.update(&new_block); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/tx.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | txo.lock(&address); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 59 | let _ = txo.lock(&address); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `new_UTXO` should have a snake case name [INFO] [stdout] --> src/transaction.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn new_UTXO(from:&str , to:&str , amount:i32 , bc:&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:122:9 [INFO] [stdout] | [INFO] [stdout] 122 | 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:135:17 [INFO] [stdout] | [INFO] [stdout] 135 | 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:159:9 [INFO] [stdout] | [INFO] [stdout] 159 | 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:172:17 [INFO] [stdout] | [INFO] [stdout] 172 | 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: method `find_UTXO` should have a snake case name [INFO] [stdout] --> src/utxoset.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 110 | 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] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/tx.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | txo.lock(&address); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 59 | let _ = txo.lock(&address); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `find_UTXO` should have a snake case name [INFO] [stdout] --> src/utxoset.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 110 | 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 10.97s [INFO] running `Command { std: "docker" "inspect" "ec79d6be810495f95f61682ca90140ffdc9542698a5ea8d3391fd4bf850d4d4c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ec79d6be810495f95f61682ca90140ffdc9542698a5ea8d3391fd4bf850d4d4c", kill_on_drop: false }` [INFO] [stdout] ec79d6be810495f95f61682ca90140ffdc9542698a5ea8d3391fd4bf850d4d4c