[INFO] cloning repository https://github.com/denny1997/Bitcoin-client-with-Prism-1.0 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/denny1997/Bitcoin-client-with-Prism-1.0" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdenny1997%2FBitcoin-client-with-Prism-1.0", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdenny1997%2FBitcoin-client-with-Prism-1.0'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 757cc0ca91a4d6e83d011df90227e6b86ed495d0 [INFO] checking denny1997/Bitcoin-client-with-Prism-1.0/757cc0ca91a4d6e83d011df90227e6b86ed495d0 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdenny1997%2FBitcoin-client-with-Prism-1.0" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/denny1997/Bitcoin-client-with-Prism-1.0 on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/denny1997/Bitcoin-client-with-Prism-1.0 [INFO] finished tweaking git repo https://github.com/denny1997/Bitcoin-client-with-Prism-1.0 [INFO] tweaked toml for git repo https://github.com/denny1997/Bitcoin-client-with-Prism-1.0 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/denny1997/Bitcoin-client-with-Prism-1.0 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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded url v2.1.0 [INFO] [stderr] Downloaded stderrlog v0.4.1 [INFO] [stderr] Downloaded num-integer v0.1.41 [INFO] [stderr] Downloaded ascii v0.8.7 [INFO] [stderr] Downloaded num-traits v0.2.8 [INFO] [stderr] Downloaded tiny_http v0.6.2 [INFO] [stderr] Downloaded bincode v1.2.0 [INFO] [stderr] Downloaded termcolor v0.3.6 [INFO] [stderr] Downloaded unicode-width v0.1.6 [INFO] [stderr] Downloaded scopeguard v1.0.0 [INFO] [stderr] Downloaded memoffset v0.5.1 [INFO] [stderr] Downloaded js-sys v0.3.28 [INFO] [stderr] Downloaded atty v0.2.13 [INFO] [stderr] Downloaded term_size v0.3.1 [INFO] [stderr] Downloaded crossbeam-channel v0.3.9 [INFO] [stderr] Downloaded ryu v1.0.2 [INFO] [stderr] Downloaded wasm-bindgen v0.2.51 [INFO] [stderr] Downloaded chrono v0.4.9 [INFO] [stderr] Downloaded nom v4.2.3 [INFO] [stderr] Downloaded crossbeam-epoch v0.7.2 [INFO] [stderr] Downloaded crossbeam v0.7.2 [INFO] [stderr] Downloaded mio-extras v2.0.5 [INFO] [stderr] Downloaded wasm-bindgen-macro v0.2.51 [INFO] [stderr] Downloaded web-sys v0.3.28 [INFO] [stderr] Downloaded serde_json v1.0.44 [INFO] [stderr] Downloaded untrusted v0.7.0 [INFO] [stderr] Downloaded sourcefile v0.1.4 [INFO] [stderr] Downloaded wasm-bindgen-shared v0.2.51 [INFO] [stderr] Downloaded wincolor v0.1.6 [INFO] [stderr] Downloaded hex-literal-impl v0.2.1 [INFO] [stderr] Downloaded hex-literal v0.2.1 [INFO] [stderr] Downloaded weedle v0.10.0 [INFO] [stderr] Downloaded crossbeam-utils v0.6.6 [INFO] [stderr] Downloaded hex v0.4.0 [INFO] [stderr] Downloaded bitflags v1.2.0 [INFO] [stderr] Downloaded wasm-bindgen-macro-support v0.2.51 [INFO] [stderr] Downloaded proc-macro-hack v0.5.11 [INFO] [stderr] Downloaded lazycell v1.2.1 [INFO] [stderr] Downloaded wasm-bindgen-backend v0.2.51 [INFO] [stderr] Downloaded wasm-bindgen-webidl v0.2.51 [INFO] [stderr] Downloaded chunked_transfer v0.3.1 [INFO] [stderr] Downloaded ring v0.16.9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7f8453606a7068bf700775463d1f7f988015b252f7c93cff67fdd6c9b5321c39 [INFO] running `Command { std: "docker" "start" "-a" "7f8453606a7068bf700775463d1f7f988015b252f7c93cff67fdd6c9b5321c39", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7f8453606a7068bf700775463d1f7f988015b252f7c93cff67fdd6c9b5321c39", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7f8453606a7068bf700775463d1f7f988015b252f7c93cff67fdd6c9b5321c39", kill_on_drop: false }` [INFO] [stdout] 7f8453606a7068bf700775463d1f7f988015b252f7c93cff67fdd6c9b5321c39 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0b991006fd0b00c7db33e6569452a7d21c76d367309586e5f4ca11887721684e [INFO] running `Command { std: "docker" "start" "-a" "0b991006fd0b00c7db33e6569452a7d21c76d367309586e5f4ca11887721684e", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v0.1.6 [INFO] [stderr] Compiling libc v0.2.62 [INFO] [stderr] Compiling proc-macro2 v1.0.5 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.5 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Checking matches v0.1.8 [INFO] [stderr] Checking smallvec v0.6.10 [INFO] [stderr] Compiling arrayvec v0.4.12 [INFO] [stderr] Compiling serde v1.0.101 [INFO] [stderr] Checking scopeguard v1.0.0 [INFO] [stderr] Checking crossbeam-utils v0.6.6 [INFO] [stderr] Compiling bitflags v1.2.0 [INFO] [stderr] Compiling byteorder v1.3.2 [INFO] [stderr] Compiling ryu v1.0.2 [INFO] [stderr] Checking unicode-bidi v0.3.4 [INFO] [stderr] Compiling cc v1.0.45 [INFO] [stderr] Checking percent-encoding v1.0.1 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Checking unicode-normalization v0.1.8 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Checking unicode-width v0.1.6 [INFO] [stderr] Compiling num-traits v0.2.8 [INFO] [stderr] Compiling num-integer v0.1.41 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling bincode v1.2.0 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Checking crossbeam-channel v0.3.9 [INFO] [stderr] Checking crossbeam-queue v0.1.2 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Checking untrusted v0.7.0 [INFO] [stderr] Checking ascii v0.8.7 [INFO] [stderr] Checking itoa v0.4.4 [INFO] [stderr] Checking termcolor v0.3.6 [INFO] [stderr] Checking lazycell v1.2.1 [INFO] [stderr] Checking chunked_transfer v0.3.1 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking hex v0.4.0 [INFO] [stderr] Compiling memoffset v0.5.1 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Compiling ring v0.16.9 [INFO] [stderr] Checking time v0.1.42 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking net2 v0.2.33 [INFO] [stderr] Checking term_size v0.3.1 [INFO] [stderr] Checking atty v0.2.13 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking crossbeam-epoch v0.7.2 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking clap v2.33.0 [INFO] [stderr] Checking mio v0.6.19 [INFO] [stderr] Checking crossbeam-deque v0.7.1 [INFO] [stderr] Checking crossbeam v0.7.2 [INFO] [stderr] Checking idna v0.1.5 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Checking chrono v0.4.9 [INFO] [stderr] Checking mio-extras v2.0.5 [INFO] [stderr] Checking url v1.7.2 [INFO] [stderr] Checking url v2.1.0 [INFO] [stderr] Checking stderrlog v0.4.1 [INFO] [stderr] Checking tiny_http v0.6.2 [INFO] [stderr] Compiling serde_derive v1.0.101 [INFO] [stderr] Compiling proc-macro-hack v0.5.11 [INFO] [stderr] Compiling hex-literal-impl v0.2.1 [INFO] [stderr] Checking hex-literal v0.2.1 [INFO] [stderr] Checking serde_json v1.0.44 [INFO] [stderr] Checking bitcoin v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition name: `test_utilities` [INFO] [stdout] --> src/block.rs:55:17 [INFO] [stdout] | [INFO] [stdout] 55 | #[cfg(any(test, test_utilities))] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `clippy`, `debug_assertions`, `doc`, `docsrs`, `doctest`, `feature`, `fmt_debug`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows` [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(test_utilities)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(test_utilities)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transaction` [INFO] [stdout] --> src/block.rs:3:26 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::transaction::{Transaction, SignedTransaction}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/block.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MerkleTree` [INFO] [stdout] --> src/block.rs:6:29 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::crypto::merkle::{MerkleTree}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `test_utilities` [INFO] [stdout] --> src/blockchain.rs:87:17 [INFO] [stdout] | [INFO] [stdout] 87 | #[cfg(any(test, test_utilities))] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(test_utilities)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(test_utilities)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `test_utilities` [INFO] [stdout] --> src/blockchain.rs:73:21 [INFO] [stdout] | [INFO] [stdout] 73 | #[cfg(any(test, test_utilities))] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(test_utilities)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(test_utilities)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `test_utilities` [INFO] [stdout] --> src/crypto/hash.rs:110:17 [INFO] [stdout] | [INFO] [stdout] 110 | #[cfg(any(test, test_utilities))] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(test_utilities)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(test_utilities)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `State` and `verify` [INFO] [stdout] --> src/miner.rs:12:26 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::transaction::{verify,Mempool,TxBlockMempool,State,StatePerBlock}; [INFO] [stdout] | ^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::Serialize` [INFO] [stdout] --> src/miner.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use serde::Serialize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::SystemTime` [INFO] [stdout] --> src/network/worker.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::time::SystemTime; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Ed25519KeyPair` and `Signature` [INFO] [stdout] --> src/network/worker.rs:13:23 [INFO] [stdout] | [INFO] [stdout] 13 | use ring::signature::{Signature, KeyPair, Ed25519KeyPair}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `State` [INFO] [stdout] --> src/network/worker.rs:14:56 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::transaction::{verify,Mempool,TxBlockMempool,State,StatePerBlock}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/network/worker.rs:146:40 [INFO] [stdout] | [INFO] [stdout] 146 | ... if (transaction_content.value <= 1000){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 146 - if (transaction_content.value <= 1000){ [INFO] [stdout] 146 + if transaction_content.value <= 1000 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::peer` [INFO] [stdout] --> src/network/generator.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use super::peer; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crossbeam::channel` [INFO] [stdout] --> src/network/generator.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crossbeam::channel; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/network/generator.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use log::{debug, warn, info}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::blockchain::Blockchain` [INFO] [stdout] --> src/network/generator.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::blockchain::Blockchain; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::block::Block` [INFO] [stdout] --> src/network/generator.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::block::Block; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `H256` [INFO] [stdout] --> src/network/generator.rs:9:36 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::crypto::hash::{Hashable,H256}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::SystemTime` [INFO] [stdout] --> src/network/generator.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::time::SystemTime; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Signature` [INFO] [stdout] --> src/network/generator.rs:13:23 [INFO] [stdout] | [INFO] [stdout] 13 | use ring::signature::{Signature, KeyPair, Ed25519KeyPair}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `verify` [INFO] [stdout] --> src/network/generator.rs:14:26 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::transaction::{verify,sign,Mempool,Transaction,SignedTransaction,State}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::crypto::key_pair` [INFO] [stdout] --> src/network/generator.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use crate::crypto::key_pair; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `test_utilities` [INFO] [stdout] --> src/transaction.rs:141:17 [INFO] [stdout] | [INFO] [stdout] 141 | #[cfg(any(test, test_utilities))] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(test_utilities)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(test_utilities)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `EdDSAParameters` [INFO] [stdout] --> src/transaction.rs:2:82 [INFO] [stdout] | [INFO] [stdout] 2 | use ring::signature::{Ed25519KeyPair, Signature, KeyPair, VerificationAlgorithm, EdDSAParameters}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/transaction.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `H256` and `Hashable` [INFO] [stdout] --> src/main.rs:27:27 [INFO] [stdout] | [INFO] [stdout] 27 | use crate::crypto::hash::{Hashable,H256}; [INFO] [stdout] | ^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::block::Block` [INFO] [stdout] --> src/main.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | use crate::block::Block; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `test_utilities` [INFO] [stdout] --> src/block.rs:55:17 [INFO] [stdout] | [INFO] [stdout] 55 | #[cfg(any(test, test_utilities))] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `clippy`, `debug_assertions`, `doc`, `docsrs`, `doctest`, `feature`, `fmt_debug`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows` [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(test_utilities)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(test_utilities)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transaction` [INFO] [stdout] --> src/block.rs:3:26 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::transaction::{Transaction, SignedTransaction}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `test_utilities` [INFO] [stdout] --> src/blockchain.rs:87:17 [INFO] [stdout] | [INFO] [stdout] 87 | #[cfg(any(test, test_utilities))] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(test_utilities)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(test_utilities)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `test_utilities` [INFO] [stdout] --> src/blockchain.rs:73:21 [INFO] [stdout] | [INFO] [stdout] 73 | #[cfg(any(test, test_utilities))] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(test_utilities)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(test_utilities)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `test_utilities` [INFO] [stdout] --> src/crypto/hash.rs:110:17 [INFO] [stdout] | [INFO] [stdout] 110 | #[cfg(any(test, test_utilities))] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(test_utilities)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(test_utilities)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `State` and `verify` [INFO] [stdout] --> src/miner.rs:12:26 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::transaction::{verify,Mempool,TxBlockMempool,State,StatePerBlock}; [INFO] [stdout] | ^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::Serialize` [INFO] [stdout] --> src/miner.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use serde::Serialize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::SystemTime` [INFO] [stdout] --> src/network/worker.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::time::SystemTime; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Ed25519KeyPair` and `Signature` [INFO] [stdout] --> src/network/worker.rs:13:23 [INFO] [stdout] | [INFO] [stdout] 13 | use ring::signature::{Signature, KeyPair, Ed25519KeyPair}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `State` [INFO] [stdout] --> src/network/worker.rs:14:56 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::transaction::{verify,Mempool,TxBlockMempool,State,StatePerBlock}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/network/worker.rs:146:40 [INFO] [stdout] | [INFO] [stdout] 146 | ... if (transaction_content.value <= 1000){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 146 - if (transaction_content.value <= 1000){ [INFO] [stdout] 146 + if transaction_content.value <= 1000 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::peer` [INFO] [stdout] --> src/network/generator.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use super::peer; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crossbeam::channel` [INFO] [stdout] --> src/network/generator.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crossbeam::channel; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/network/generator.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use log::{debug, warn, info}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::blockchain::Blockchain` [INFO] [stdout] --> src/network/generator.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::blockchain::Blockchain; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::block::Block` [INFO] [stdout] --> src/network/generator.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::block::Block; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `H256` [INFO] [stdout] --> src/network/generator.rs:9:36 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::crypto::hash::{Hashable,H256}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::SystemTime` [INFO] [stdout] --> src/network/generator.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::time::SystemTime; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Signature` [INFO] [stdout] --> src/network/generator.rs:13:23 [INFO] [stdout] | [INFO] [stdout] 13 | use ring::signature::{Signature, KeyPair, Ed25519KeyPair}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `verify` [INFO] [stdout] --> src/network/generator.rs:14:26 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::transaction::{verify,sign,Mempool,Transaction,SignedTransaction,State}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::crypto::key_pair` [INFO] [stdout] --> src/network/generator.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use crate::crypto::key_pair; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `test_utilities` [INFO] [stdout] --> src/transaction.rs:141:17 [INFO] [stdout] | [INFO] [stdout] 141 | #[cfg(any(test, test_utilities))] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(test_utilities)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(test_utilities)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `EdDSAParameters` [INFO] [stdout] --> src/transaction.rs:2:82 [INFO] [stdout] | [INFO] [stdout] 2 | use ring::signature::{Ed25519KeyPair, Signature, KeyPair, VerificationAlgorithm, EdDSAParameters}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `H256` and `Hashable` [INFO] [stdout] --> src/main.rs:27:27 [INFO] [stdout] | [INFO] [stdout] 27 | use crate::crypto::hash::{Hashable,H256}; [INFO] [stdout] | ^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::block::Block` [INFO] [stdout] --> src/main.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | use crate::block::Block; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `block::Header` has no field named `difficulty` [INFO] [stdout] --> src/block.rs:66:60 [INFO] [stdout] | [INFO] [stdout] 66 | let header:Header = Header{parent:*parent,nonce:n1,difficulty:*parent,timestamp:n2,merkle_root:merkle_root}; [INFO] [stdout] | ^^^^^^^^^^ `block::Header` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `difficultyForPr`, `difficultyForTx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `txPointer` in initializer of `block::Block` [INFO] [stdout] --> src/block.rs:68:28 [INFO] [stdout] | [INFO] [stdout] 68 | let block: Block = Block{header: header, content: content}; [INFO] [stdout] | ^^^^^ missing `txPointer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/network/worker.rs:222:45 [INFO] [stdout] | [INFO] [stdout] 221 | ... break; [INFO] [stdout] | ----- any code following this expression is unreachable [INFO] [stdout] 222 | ... println!("ooooooooops, something is not good!"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/network/worker.rs:339:61 [INFO] [stdout] | [INFO] [stdout] 338 | ... break; [INFO] [stdout] | ----- any code following this expression is unreachable [INFO] [stdout] 339 | ... println!("ooooooooops, something is not good!"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/network/worker.rs:432:65 [INFO] [stdout] | [INFO] [stdout] 431 | ... break; [INFO] [stdout] | ----- any code following this expression is unreachable [INFO] [stdout] 432 | ... println!("ooooooooops, something is not good!"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/network/worker.rs:222:45 [INFO] [stdout] | [INFO] [stdout] 221 | ... break; [INFO] [stdout] | ----- any code following this expression is unreachable [INFO] [stdout] 222 | ... println!("ooooooooops, something is not good!"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/network/worker.rs:339:61 [INFO] [stdout] | [INFO] [stdout] 338 | ... break; [INFO] [stdout] | ----- any code following this expression is unreachable [INFO] [stdout] 339 | ... println!("ooooooooops, something is not good!"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/network/worker.rs:432:65 [INFO] [stdout] | [INFO] [stdout] 431 | ... break; [INFO] [stdout] | ----- any code following this expression is unreachable [INFO] [stdout] 432 | ... println!("ooooooooops, something is not good!"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `VerificationAlgorithm` [INFO] [stdout] --> src/transaction.rs:2:59 [INFO] [stdout] | [INFO] [stdout] 2 | use ring::signature::{Ed25519KeyPair, Signature, KeyPair, VerificationAlgorithm, EdDSAParameters}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `KeyPair` [INFO] [stdout] --> src/transaction.rs:2:50 [INFO] [stdout] | [INFO] [stdout] 2 | use ring::signature::{Ed25519KeyPair, Signature, KeyPair, VerificationAlgorithm, EdDSAParameters}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `KeyPair` [INFO] [stdout] --> src/network/worker.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | use ring::signature::{Signature, KeyPair, Ed25519KeyPair}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `transaction::Transaction` has no field named `transaction` [INFO] [stdout] --> src/transaction.rs:150:21 [INFO] [stdout] | [INFO] [stdout] 150 | Transaction{transaction: n1} [INFO] [stdout] | ^^^^^^^^^^^ `transaction::Transaction` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `recipientAddr`, `value`, `accountNonce` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/transaction.rs:158:28 [INFO] [stdout] | [INFO] [stdout] 158 | assert!(verify(&t, &(key.public_key()), &signature.as_ref())); [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^^ expected `&[u8]`, found `&&PublicKey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&[u8]` [INFO] [stdout] found reference `&&ring::ec::curve25519::ed25519::signing::PublicKey` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/transaction.rs:119:8 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn verify(t: &Transaction, public_key: &[u8], signature: &[u8]) -> bool { [INFO] [stdout] | ^^^^^^ ----------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `VerificationAlgorithm` [INFO] [stdout] --> src/transaction.rs:2:59 [INFO] [stdout] | [INFO] [stdout] 2 | use ring::signature::{Ed25519KeyPair, Signature, KeyPair, VerificationAlgorithm, EdDSAParameters}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `KeyPair` [INFO] [stdout] --> src/network/worker.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | use ring::signature::{Signature, KeyPair, Ed25519KeyPair}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/blockchain.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | ... let mut difficultyForPr: [u8; 32] = [0,1,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,25... [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/blockchain.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | ... let mut difficultyForTx: [u8; 32] = [0,16,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,2... [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `append_length` is never read [INFO] [stdout] --> src/crypto/merkle.rs:49:25 [INFO] [stdout] | [INFO] [stdout] 49 | let mut append_length = 0; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tree_root` [INFO] [stdout] --> src/crypto/merkle.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | let tree_root = temp[temp.len()-1]; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tree_root` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `append_length` is never read [INFO] [stdout] --> src/crypto/merkle.rs:172:25 [INFO] [stdout] | [INFO] [stdout] 172 | let mut append_length = 0; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tree_root` [INFO] [stdout] --> src/crypto/merkle.rs:201:13 [INFO] [stdout] | [INFO] [stdout] 201 | let tree_root = temp[temp.len()-1]; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tree_root` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `signature` [INFO] [stdout] --> src/miner.rs:230:33 [INFO] [stdout] | [INFO] [stdout] 230 | ... let signature = &signedTransaction.signature; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_signature` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `signature` [INFO] [stdout] --> src/miner.rs:353:33 [INFO] [stdout] | [INFO] [stdout] 353 | ... let signature = &signedTransaction.signature; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_signature` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/blockchain.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | ... let mut difficultyForPr: [u8; 32] = [0,1,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,25... [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/blockchain.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | ... let mut difficultyForTx: [u8; 32] = [0,16,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,2... [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `append_length` is never read [INFO] [stdout] --> src/crypto/merkle.rs:49:25 [INFO] [stdout] | [INFO] [stdout] 49 | let mut append_length = 0; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tree_root` [INFO] [stdout] --> src/crypto/merkle.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | let tree_root = temp[temp.len()-1]; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tree_root` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `append_length` is never read [INFO] [stdout] --> src/crypto/merkle.rs:172:25 [INFO] [stdout] | [INFO] [stdout] 172 | let mut append_length = 0; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tree_root` [INFO] [stdout] --> src/crypto/merkle.rs:201:13 [INFO] [stdout] | [INFO] [stdout] 201 | let tree_root = temp[temp.len()-1]; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tree_root` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/miner.rs:195:17 [INFO] [stdout] | [INFO] [stdout] 195 | let mut orderList = spb.spb[&parent].txBlockOrderedList.clone(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `signature` [INFO] [stdout] --> src/miner.rs:230:33 [INFO] [stdout] | [INFO] [stdout] 230 | ... let signature = &signedTransaction.signature; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_signature` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `signature` [INFO] [stdout] --> src/miner.rs:353:33 [INFO] [stdout] | [INFO] [stdout] 353 | ... let signature = &signedTransaction.signature; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_signature` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/miner.rs:195:17 [INFO] [stdout] | [INFO] [stdout] 195 | let mut orderList = spb.spb[&parent].txBlockOrderedList.clone(); [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/network/worker.rs:318:45 [INFO] [stdout] | [INFO] [stdout] 318 | ... let mut orderList = spb.spb[&block.header.parent].txBlockOrderedList.clone(); [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/network/worker.rs:411:49 [INFO] [stdout] | [INFO] [stdout] 411 | ... let mut orderList = spb.spb[&parent].txBlockOrderedList.clone(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `recipientKeyPair` [INFO] [stdout] --> src/network/generator.rs:111:17 [INFO] [stdout] | [INFO] [stdout] 111 | let recipientKeyPair = &key_set[&recipientIdx]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_recipientKeyPair` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `currentBalance` is never read [INFO] [stdout] --> src/network/generator.rs:117:21 [INFO] [stdout] | [INFO] [stdout] 117 | let mut currentBalance:u32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `nonce` is never read [INFO] [stdout] --> src/network/generator.rs:118:21 [INFO] [stdout] | [INFO] [stdout] 118 | let mut nonce:u32 = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `value` is never read [INFO] [stdout] --> src/network/generator.rs:138:21 [INFO] [stdout] | [INFO] [stdout] 138 | let mut value = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/network/generator.rs:105:17 [INFO] [stdout] | [INFO] [stdout] 105 | let mut key_set = temp_key_set.lock().unwrap(); [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/transaction.rs:36:21 [INFO] [stdout] | [INFO] [stdout] 36 | let mut states: HashMap = HashMap::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/transaction.rs:37:21 [INFO] [stdout] | [INFO] [stdout] 37 | let mut txBlockOrderedList: Vec = Vec::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/transaction.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | let mut txBlocks: HashMap = HashMap::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/network/worker.rs:318:45 [INFO] [stdout] | [INFO] [stdout] 318 | ... let mut orderList = spb.spb[&block.header.parent].txBlockOrderedList.clone(); [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/network/worker.rs:411:49 [INFO] [stdout] | [INFO] [stdout] 411 | ... let mut orderList = spb.spb[&parent].txBlockOrderedList.clone(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `recipientKeyPair` [INFO] [stdout] --> src/network/generator.rs:111:17 [INFO] [stdout] | [INFO] [stdout] 111 | let recipientKeyPair = &key_set[&recipientIdx]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_recipientKeyPair` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `currentBalance` is never read [INFO] [stdout] --> src/network/generator.rs:117:21 [INFO] [stdout] | [INFO] [stdout] 117 | let mut currentBalance:u32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `nonce` is never read [INFO] [stdout] --> src/network/generator.rs:118:21 [INFO] [stdout] | [INFO] [stdout] 118 | let mut nonce:u32 = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `value` is never read [INFO] [stdout] --> src/network/generator.rs:138:21 [INFO] [stdout] | [INFO] [stdout] 138 | let mut value = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/transaction.rs:87:13 [INFO] [stdout] | [INFO] [stdout] 87 | let mut transactions: HashMap = HashMap::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/network/generator.rs:105:17 [INFO] [stdout] | [INFO] [stdout] 105 | let mut key_set = temp_key_set.lock().unwrap(); [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/transaction.rs:36:21 [INFO] [stdout] | [INFO] [stdout] 36 | let mut states: HashMap = HashMap::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/transaction.rs:37:21 [INFO] [stdout] | [INFO] [stdout] 37 | let mut txBlockOrderedList: Vec = Vec::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/transaction.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | let mut txBlocks: HashMap = HashMap::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/main.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | let mut blockchain = Arc::new(Mutex::new(temp_blockchain.clone())); [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/main.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | let mut mempool = Arc::new(Mutex::new(Mempool::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/main.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | let mut txBlockmempool = Arc::new(Mutex::new(TxBlockMempool::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/main.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | let mut txBlockOrderedList = Arc::new(Mutex::new(Vec::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/main.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | let mut state = Arc::new(Mutex::new(temp_state.clone())); [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/main.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | let mut spb = Arc::new(Mutex::new(StatePerBlock::new(temp_blockchain.genesis, temp_state))); [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/main.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | let mut key_set = Arc::new(Mutex::new(key_hashtable)); [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/main.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | let mut new_Hashmap = Arc::new(Mutex::new(HashMap::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/transaction.rs:87:13 [INFO] [stdout] | [INFO] [stdout] 87 | let mut transactions: HashMap = HashMap::new(); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `state` is never read [INFO] [stdout] --> src/network/generator.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Context { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 32 | state: Arc>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Context` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `txBlockmempool` should have a snake case name [INFO] [stdout] --> src/main.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | let mut txBlockmempool = Arc::new(Mutex::new(TxBlockMempool::new())); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `tx_blockmempool` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `txBlockOrderedList` should have a snake case name [INFO] [stdout] --> src/main.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | let mut txBlockOrderedList = Arc::new(Mutex::new(Vec::new())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `tx_block_ordered_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `new_Hashmap` should have a snake case name [INFO] [stdout] --> src/main.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | let mut new_Hashmap = Arc::new(Mutex::new(HashMap::new())); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `new_hashmap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `difficultyForPr` should have a snake case name [INFO] [stdout] --> src/block.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub difficultyForPr:H256, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `difficulty_for_pr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `difficultyForTx` should have a snake case name [INFO] [stdout] --> src/block.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub difficultyForTx:H256, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `difficulty_for_tx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `txPointer` should have a snake case name [INFO] [stdout] --> src/block.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | pub txPointer:TxPointer, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `tx_pointer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `difficultyForPr` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | ... let mut difficultyForPr: [u8; 32] = [0,1,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,25... [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `difficulty_for_pr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `difficultyForTx` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:26:17 [INFO] [stdout] | [INFO] [stdout] 26 | ... let mut difficultyForTx: [u8; 32] = [0,16,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,2... [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `difficulty_for_tx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `txPointer` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | let txPointer:TxPointer = TxPointer{tp:pointer}; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `tx_pointer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `appendVec` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:56:25 [INFO] [stdout] | [INFO] [stdout] 56 | let mut appendVec: Vec = [].to_vec(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `append_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `txPointer` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:124:28 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn new1(data: &[T], txPointer: &[H256]) -> Self where T: Hashable { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `tx_pointer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `appendVec` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:179:25 [INFO] [stdout] | [INFO] [stdout] 179 | let mut appendVec: Vec = [].to_vec(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `append_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `txBlockmempool` should have a snake case name [INFO] [stdout] --> src/miner.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | txBlockmempool: Arc>, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `tx_blockmempool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `txBlockOrderedList` should have a snake case name [INFO] [stdout] --> src/miner.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | txBlockOrderedList: Arc>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `tx_block_ordered_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `txBlockmempool` should have a snake case name [INFO] [stdout] --> src/miner.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | txBlockmempool: &Arc>, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `tx_blockmempool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `txBlockOrderedList` should have a snake case name [INFO] [stdout] --> src/miner.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | txBlockOrderedList: &Arc>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `tx_block_ordered_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `temp_txBlockmempool` should have a snake case name [INFO] [stdout] --> src/miner.rs:159:17 [INFO] [stdout] | [INFO] [stdout] 159 | let temp_txBlockmempool = Arc::clone(&self.txBlockmempool); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `temp_tx_blockmempool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `txBlockmempool` should have a snake case name [INFO] [stdout] --> src/miner.rs:160:21 [INFO] [stdout] | [INFO] [stdout] 160 | let mut txBlockmempool = temp_txBlockmempool.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `tx_blockmempool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `temp_txBlockOrderedList` should have a snake case name [INFO] [stdout] --> src/miner.rs:162:17 [INFO] [stdout] | [INFO] [stdout] 162 | let temp_txBlockOrderedList = Arc::clone(&self.txBlockOrderedList); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `temp_tx_block_ordered_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `txBlockOrderedList` should have a snake case name [INFO] [stdout] --> src/miner.rs:163:21 [INFO] [stdout] | [INFO] [stdout] 163 | let mut txBlockOrderedList = temp_txBlockOrderedList.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `tx_block_ordered_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `difficultyForPr` should have a snake case name [INFO] [stdout] --> src/miner.rs:169:17 [INFO] [stdout] | [INFO] [stdout] 169 | let difficultyForPr = blockchain.blocks[&parent].header.difficultyForPr; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `difficulty_for_pr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `difficultyForTx` should have a snake case name [INFO] [stdout] --> src/miner.rs:170:17 [INFO] [stdout] | [INFO] [stdout] 170 | let difficultyForTx = blockchain.blocks[&parent].header.difficultyForTx; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `difficulty_for_tx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `orderList` should have a snake case name [INFO] [stdout] --> src/miner.rs:195:21 [INFO] [stdout] | [INFO] [stdout] 195 | let mut orderList = spb.spb[&parent].txBlockOrderedList.clone(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `order_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `txBlock` should have a snake case name [INFO] [stdout] --> src/miner.rs:196:17 [INFO] [stdout] | [INFO] [stdout] 196 | for txBlock in (*txBlockOrderedList).clone() { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `tx_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `txPointer` should have a snake case name [INFO] [stdout] --> src/miner.rs:202:17 [INFO] [stdout] | [INFO] [stdout] 202 | let txPointer = TxPointer{tp:tp.clone()}; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `tx_pointer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `validTransaction` should have a snake case name [INFO] [stdout] --> src/miner.rs:224:29 [INFO] [stdout] | [INFO] [stdout] 224 | let mut validTransaction = vec![]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `valid_transaction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `txBlk` should have a snake case name [INFO] [stdout] --> src/miner.rs:227:29 [INFO] [stdout] | [INFO] [stdout] 227 | let txBlk = txBlockmempool.txBlocks[&txpointer].clone(); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `tx_blk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `signedTransaction` should have a snake case name [INFO] [stdout] --> src/miner.rs:229:29 [INFO] [stdout] | [INFO] [stdout] 229 | for signedTransaction in contents { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `signed_transaction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `recipientAddr` should have a snake case name [INFO] [stdout] --> src/miner.rs:235:33 [INFO] [stdout] | [INFO] [stdout] 235 | ... let recipientAddr = transaction.recipientAddr; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `recipient_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `accountNonce` should have a snake case name [INFO] [stdout] --> src/miner.rs:237:33 [INFO] [stdout] | [INFO] [stdout] 237 | ... let accountNonce = transaction.accountNonce; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `account_nonce` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `senderAddr` should have a snake case name [INFO] [stdout] --> src/miner.rs:239:33 [INFO] [stdout] | [INFO] [stdout] 239 | ... let senderAddr: H160 = public_key[..].into(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `sender_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `recipientAddr` should have a snake case name [INFO] [stdout] --> src/miner.rs:267:29 [INFO] [stdout] | [INFO] [stdout] 267 | let recipientAddr = transaction.recipientAddr; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `recipient_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `senderAddr` should have a snake case name [INFO] [stdout] --> src/miner.rs:268:29 [INFO] [stdout] | [INFO] [stdout] 268 | let senderAddr: H160 = public_key[..].into(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `sender_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `validTransaction` should have a snake case name [INFO] [stdout] --> src/miner.rs:347:29 [INFO] [stdout] | [INFO] [stdout] 347 | let mut validTransaction = vec![]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `valid_transaction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `txBlk` should have a snake case name [INFO] [stdout] --> src/miner.rs:350:29 [INFO] [stdout] | [INFO] [stdout] 350 | let txBlk = txBlockmempool.txBlocks[&txpointer].clone(); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `tx_blk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `signedTransaction` should have a snake case name [INFO] [stdout] --> src/miner.rs:352:29 [INFO] [stdout] | [INFO] [stdout] 352 | for signedTransaction in contents { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `signed_transaction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `recipientAddr` should have a snake case name [INFO] [stdout] --> src/miner.rs:358:33 [INFO] [stdout] | [INFO] [stdout] 358 | ... let recipientAddr = transaction.recipientAddr; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `recipient_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `accountNonce` should have a snake case name [INFO] [stdout] --> src/miner.rs:360:33 [INFO] [stdout] | [INFO] [stdout] 360 | ... let accountNonce = transaction.accountNonce; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `account_nonce` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `senderAddr` should have a snake case name [INFO] [stdout] --> src/miner.rs:362:33 [INFO] [stdout] | [INFO] [stdout] 362 | ... let senderAddr: H160 = public_key[..].into(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `sender_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `recipientAddr` should have a snake case name [INFO] [stdout] --> src/miner.rs:390:29 [INFO] [stdout] | [INFO] [stdout] 390 | let recipientAddr = transaction.recipientAddr; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `recipient_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `senderAddr` should have a snake case name [INFO] [stdout] --> src/miner.rs:391:29 [INFO] [stdout] | [INFO] [stdout] 391 | let senderAddr: H160 = public_key[..].into(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `sender_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `txBlockmempool` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | txBlockmempool: Arc>, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `tx_blockmempool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `txBlockOrderedList` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | txBlockOrderedList: Arc>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `tx_block_ordered_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `hashMap` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | hashMap: &Arc>>, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `hash_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `txBlockmempool` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | txBlockmempool: &Arc>, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `tx_blockmempool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `txBlockOrderedList` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | txBlockOrderedList: &Arc>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `tx_block_ordered_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `temp_txBlockmempool` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:82:17 [INFO] [stdout] | [INFO] [stdout] 82 | let temp_txBlockmempool = Arc::clone(&self.txBlockmempool); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `temp_tx_blockmempool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `txBlockmempool` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:83:21 [INFO] [stdout] | [INFO] [stdout] 83 | let mut txBlockmempool = temp_txBlockmempool.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `tx_blockmempool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `temp_txBlockOrderedList` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:85:17 [INFO] [stdout] | [INFO] [stdout] 85 | let temp_txBlockOrderedList = Arc::clone(&self.txBlockOrderedList); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `temp_tx_block_ordered_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `txBlockOrderedList` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:86:21 [INFO] [stdout] | [INFO] [stdout] 86 | let mut txBlockOrderedList = temp_txBlockOrderedList.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `tx_block_ordered_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `signedTransaction` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:214:41 [INFO] [stdout] | [INFO] [stdout] 214 | ... for signedTransaction in contents { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `signed_transaction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `orderList` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:318:49 [INFO] [stdout] | [INFO] [stdout] 318 | ... let mut orderList = spb.spb[&block.header.parent].txBlockOrderedList.clone(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `order_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `validTransaction` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:320:49 [INFO] [stdout] | [INFO] [stdout] 320 | ... let mut validTransaction = vec![]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `valid_transaction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `txBlk` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:328:57 [INFO] [stdout] | [INFO] [stdout] 328 | ... let txBlk = txBlockmempool.txBlocks[&txpointer].clone(); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `tx_blk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `signedTransaction` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:331:57 [INFO] [stdout] | [INFO] [stdout] 331 | ... for signedTransaction in contents { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `signed_transaction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `recipientAddr` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:341:61 [INFO] [stdout] | [INFO] [stdout] 341 | ... let recipientAddr = transaction.recipientAddr; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `recipient_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `accountNonce` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:343:61 [INFO] [stdout] | [INFO] [stdout] 343 | ... let accountNonce = transaction.accountNonce; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `account_nonce` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `senderAddr` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:345:61 [INFO] [stdout] | [INFO] [stdout] 345 | ... let senderAddr: H160 = public_key[..].into(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `sender_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `recipientAddr` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:378:49 [INFO] [stdout] | [INFO] [stdout] 378 | ... let recipientAddr = transaction.recipientAddr; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `recipient_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `senderAddr` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:379:49 [INFO] [stdout] | [INFO] [stdout] 379 | ... let senderAddr: H160 = public_key[..].into(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `sender_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `difficultyForPr` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:400:45 [INFO] [stdout] | [INFO] [stdout] 400 | ... let difficultyForPr = block.header.difficultyForPr; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `difficulty_for_pr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `difficultyForTx` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:401:45 [INFO] [stdout] | [INFO] [stdout] 401 | ... let difficultyForTx = block.header.difficultyForTx; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `difficulty_for_tx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `orderList` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:411:53 [INFO] [stdout] | [INFO] [stdout] 411 | ... let mut orderList = spb.spb[&parent].txBlockOrderedList.clone(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `order_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `validTransaction` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:413:53 [INFO] [stdout] | [INFO] [stdout] 413 | ... let mut validTransaction = vec![]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `valid_transaction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `txBlk` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:421:61 [INFO] [stdout] | [INFO] [stdout] 421 | ... let txBlk = txBlockmempool.txBlocks[&txpointer].clone(); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `tx_blk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `signedTransaction` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:424:61 [INFO] [stdout] | [INFO] [stdout] 424 | ... for signedTransaction in contents { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `signed_transaction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `recipientAddr` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:434:65 [INFO] [stdout] | [INFO] [stdout] 434 | ... let recipientAddr = transaction.recipientAddr; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `recipient_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `accountNonce` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:436:65 [INFO] [stdout] | [INFO] [stdout] 436 | ... let accountNonce = transaction.accountNonce; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `account_nonce` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `senderAddr` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:438:65 [INFO] [stdout] | [INFO] [stdout] 438 | ... let senderAddr: H160 = public_key[..].into(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `sender_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `recipientAddr` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:471:53 [INFO] [stdout] | [INFO] [stdout] 471 | ... let recipientAddr = transaction.recipientAddr; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `recipient_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `senderAddr` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:472:53 [INFO] [stdout] | [INFO] [stdout] 472 | ... let senderAddr: H160 = public_key[..].into(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `sender_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `accountNum` should have a snake case name [INFO] [stdout] --> src/network/generator.rs:96:17 [INFO] [stdout] | [INFO] [stdout] 96 | let accountNum = 5; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `account_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `senderIdx` should have a snake case name [INFO] [stdout] --> src/network/generator.rs:98:17 [INFO] [stdout] | [INFO] [stdout] 98 | let senderIdx = rng.gen_range(0,accountNum) as u32; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `sender_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `recipientIdx` should have a snake case name [INFO] [stdout] --> src/network/generator.rs:99:21 [INFO] [stdout] | [INFO] [stdout] 99 | let mut recipientIdx = rng.gen_range(0,accountNum) as u32; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `recipient_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `senderKeyPair` should have a snake case name [INFO] [stdout] --> src/network/generator.rs:107:17 [INFO] [stdout] | [INFO] [stdout] 107 | let senderKeyPair = &key_set[&senderIdx]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `sender_key_pair` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `senderPublicKey` should have a snake case name [INFO] [stdout] --> src/network/generator.rs:108:17 [INFO] [stdout] | [INFO] [stdout] 108 | let senderPublicKey = senderKeyPair.public_key().as_ref(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `sender_public_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `senderPublicKey_hash_h160` should have a snake case name [INFO] [stdout] --> src/network/generator.rs:109:17 [INFO] [stdout] | [INFO] [stdout] 109 | let senderPublicKey_hash_h160:H160 = senderPublicKey.into(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `sender_public_key_hash_h160` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `recipientKeyPair` should have a snake case name [INFO] [stdout] --> src/network/generator.rs:111:17 [INFO] [stdout] | [INFO] [stdout] 111 | let recipientKeyPair = &key_set[&recipientIdx]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `recipient_key_pair` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `recipientNonce` should have a snake case name [INFO] [stdout] --> src/network/generator.rs:112:17 [INFO] [stdout] | [INFO] [stdout] 112 | let recipientNonce = record[&recipientIdx].0; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `recipient_nonce` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `recipientBalance` should have a snake case name [INFO] [stdout] --> src/network/generator.rs:113:17 [INFO] [stdout] | [INFO] [stdout] 113 | let recipientBalance = record[&recipientIdx].1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `recipient_balance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `recipientPublicKey` should have a snake case name [INFO] [stdout] --> src/network/generator.rs:114:17 [INFO] [stdout] | [INFO] [stdout] 114 | let recipientPublicKey = (key_set[&recipientIdx]).public_key().as_ref(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `recipient_public_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `recipientPublicKey_hash_h160` should have a snake case name [INFO] [stdout] --> src/network/generator.rs:115:17 [INFO] [stdout] | [INFO] [stdout] 115 | let recipientPublicKey_hash_h160:H160 = recipientPublicKey.into(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `recipient_public_key_hash_h160` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentBalance` should have a snake case name [INFO] [stdout] --> src/network/generator.rs:117:21 [INFO] [stdout] | [INFO] [stdout] 117 | let mut currentBalance:u32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `current_balance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `signedT` should have a snake case name [INFO] [stdout] --> src/network/generator.rs:159:17 [INFO] [stdout] | [INFO] [stdout] 159 | ... let signedT = SignedTransaction{signature: sig.as_ref().to_vec(), public_key: senderPublicKey.to_vec(), transaction: transaction}; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `signed_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `txBlockOrderedList` should have a snake case name [INFO] [stdout] --> src/transaction.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | pub txBlockOrderedList: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `tx_block_ordered_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `txBlockOrderedList` should have a snake case name [INFO] [stdout] --> src/transaction.rs:37:25 [INFO] [stdout] | [INFO] [stdout] 37 | let mut txBlockOrderedList: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `tx_block_ordered_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `addressCheck` should have a snake case name [INFO] [stdout] --> src/transaction.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn addressCheck(&self, public_key: &[u8]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `address_check` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `spendCheck` should have a snake case name [INFO] [stdout] --> src/transaction.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn spendCheck(&self, public_key: &[u8], value:u32, accountNonce:u32) -> bool { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `spend_check` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `accountNonce` should have a snake case name [INFO] [stdout] --> src/transaction.rs:53:60 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn spendCheck(&self, public_key: &[u8], value:u32, accountNonce:u32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `account_nonce` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `accountInfo` should have a snake case name [INFO] [stdout] --> src/transaction.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | let accountInfo = self.states[&public_key.into()]; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `account_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `txBlocks` should have a snake case name [INFO] [stdout] --> src/transaction.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | pub txBlocks: HashMap, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `tx_blocks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `txBlocks` should have a snake case name [INFO] [stdout] --> src/transaction.rs:71:17 [INFO] [stdout] | [INFO] [stdout] 71 | let mut txBlocks: HashMap = HashMap::new(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `tx_blocks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `txBlock` should have a snake case name [INFO] [stdout] --> src/transaction.rs:75:30 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn insert(&mut self, txBlock: &Block) { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `tx_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `recipientAddr` should have a snake case name [INFO] [stdout] --> src/transaction.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | pub recipientAddr: H160, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `recipient_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `accountNonce` should have a snake case name [INFO] [stdout] --> src/transaction.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | pub accountNonce: u32, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `account_nonce` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | let mut blockchain = Arc::new(Mutex::new(temp_blockchain.clone())); [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/main.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | let mut mempool = Arc::new(Mutex::new(Mempool::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/main.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | let mut txBlockmempool = Arc::new(Mutex::new(TxBlockMempool::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/main.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | let mut txBlockOrderedList = Arc::new(Mutex::new(Vec::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/main.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | let mut state = Arc::new(Mutex::new(temp_state.clone())); [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/main.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | let mut spb = Arc::new(Mutex::new(StatePerBlock::new(temp_blockchain.genesis, temp_state))); [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/main.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | let mut key_set = Arc::new(Mutex::new(key_hashtable)); [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/main.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | let mut new_Hashmap = Arc::new(Mutex::new(HashMap::new())); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 158 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 58 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0063, E0308, E0560. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0063`. [INFO] [stdout] [INFO] [stderr] error: could not compile `bitcoin` (bin "bitcoin" test) due to 5 previous errors; 58 warnings emitted [INFO] running `Command { std: "docker" "inspect" "0b991006fd0b00c7db33e6569452a7d21c76d367309586e5f4ca11887721684e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0b991006fd0b00c7db33e6569452a7d21c76d367309586e5f4ca11887721684e", kill_on_drop: false }` [INFO] [stdout] 0b991006fd0b00c7db33e6569452a7d21c76d367309586e5f4ca11887721684e