[INFO] cloning repository https://github.com/LEON-HYZ/ece598-block-chain [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/LEON-HYZ/ece598-block-chain" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLEON-HYZ%2Fece598-block-chain", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLEON-HYZ%2Fece598-block-chain'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 28bac973e5eeacc817dfadabc3b544fc4a029cf5 [INFO] checking LEON-HYZ/ece598-block-chain against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLEON-HYZ%2Fece598-block-chain" "/workspace/builds/worker-13/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-13/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/LEON-HYZ/ece598-block-chain on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/LEON-HYZ/ece598-block-chain [INFO] finished tweaking git repo https://github.com/LEON-HYZ/ece598-block-chain [INFO] tweaked toml for git repo https://github.com/LEON-HYZ/ece598-block-chain written to /workspace/builds/worker-13/source/Cargo.toml [INFO] crate git repo https://github.com/LEON-HYZ/ece598-block-chain already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded modpow v1.0.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] be6193057b4d26805579ca1320967cd7ead9fe5725af016f3422ada1c19f0946 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "be6193057b4d26805579ca1320967cd7ead9fe5725af016f3422ada1c19f0946", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "be6193057b4d26805579ca1320967cd7ead9fe5725af016f3422ada1c19f0946", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "be6193057b4d26805579ca1320967cd7ead9fe5725af016f3422ada1c19f0946", kill_on_drop: false }` [INFO] [stdout] be6193057b4d26805579ca1320967cd7ead9fe5725af016f3422ada1c19f0946 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4770f16bc1ce88b663cc83ff63a58b50a7e7386cc2d80d8cff7eed9849d3a032 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "4770f16bc1ce88b663cc83ff63a58b50a7e7386cc2d80d8cff7eed9849d3a032", kill_on_drop: false }` [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 autocfg v0.1.6 [INFO] [stderr] Compiling serde v1.0.101 [INFO] [stderr] Checking smallvec v0.6.10 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling arrayvec v0.4.12 [INFO] [stderr] Compiling byteorder v1.3.2 [INFO] [stderr] Checking scopeguard v1.0.0 [INFO] [stderr] Compiling bitflags v1.2.0 [INFO] [stderr] Compiling cc v1.0.45 [INFO] [stderr] Checking unicode-width v0.1.6 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking chunked_transfer v0.3.1 [INFO] [stderr] Checking itoa v0.4.4 [INFO] [stderr] Checking ascii v0.8.7 [INFO] [stderr] Checking untrusted v0.7.0 [INFO] [stderr] Checking vec_map v0.8.1 [INFO] [stderr] Checking lazycell v1.2.1 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking termcolor v0.3.6 [INFO] [stderr] Checking hex v0.4.0 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling num-iter v0.1.40 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Checking crossbeam-utils v0.6.6 [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Checking unicode-normalization v0.1.8 [INFO] [stderr] Checking time v0.1.42 [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] Compiling memoffset v0.5.1 [INFO] [stderr] Checking textwrap v0.11.0 [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] Checking mio v0.6.19 [INFO] [stderr] Checking clap v2.33.0 [INFO] [stderr] Checking crossbeam-epoch v0.7.2 [INFO] [stderr] Compiling ring v0.16.9 [INFO] [stderr] Checking crossbeam-deque v0.7.1 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Checking mio-extras v2.0.5 [INFO] [stderr] Checking idna v0.1.5 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Checking crossbeam v0.7.2 [INFO] [stderr] Checking url v2.1.0 [INFO] [stderr] Checking url v1.7.2 [INFO] [stderr] Checking num v0.2.1 [INFO] [stderr] Checking modpow v1.0.1 [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 chrono v0.4.9 [INFO] [stderr] Checking serde_json v1.0.44 [INFO] [stderr] Checking stderrlog v0.4.1 [INFO] [stderr] Checking tiny_http v0.6.2 [INFO] [stderr] Checking bitcoin v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transaction` [INFO] [stdout] --> src/block.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::transaction::{Transaction, SignedTransaction, generate_random_signed_transaction_}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::distributions::Alphanumeric` [INFO] [stdout] --> src/block.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use rand::distributions::Alphanumeric; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `digest` [INFO] [stdout] --> src/block.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | use ring::{digest}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/block.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | use std::time::{Duration, SystemTime, UNIX_EPOCH}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Hashable_160` should have an upper camel case name [INFO] [stdout] --> src/crypto/hash.rs:129:11 [INFO] [stdout] | [INFO] [stdout] 129 | pub trait Hashable_160 { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Hashable160` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::info` [INFO] [stdout] --> src/crypto/merkle.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use log::info; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transaction` [INFO] [stdout] --> src/miner.rs:9:26 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::transaction::{Transaction, Mempool, SignedTransaction, StateWitness}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `digest` [INFO] [stdout] --> src/miner.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | use ring::{digest}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/miner.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | use log::{info,debug}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fs` [INFO] [stdout] --> src/miner.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | use std::{time, fs}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ring::signature::Ed25519KeyPair` [INFO] [stdout] --> src/miner.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use ring::signature::Ed25519KeyPair; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hashable` [INFO] [stdout] --> src/network/message.rs:3:33 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::crypto::hash::{H256, Hashable, H160}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `StateWitness`, `Transaction` [INFO] [stdout] --> src/network/message.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::transaction::{Transaction, SignedTransaction,StateWitness}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Content`, `Header` [INFO] [stdout] --> src/network/worker.rs:10:26 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::block::{Block,Header,Content}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MerkleTree` [INFO] [stdout] --> src/network/worker.rs:11:29 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::crypto::merkle::{MerkleTree}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Ed25519KeyPair`, `EdDSAParameters`, `KeyPair`, `Signature`, `VerificationAlgorithm` [INFO] [stdout] --> src/network/worker.rs:14:23 [INFO] [stdout] | [INFO] [stdout] 14 | use ring::signature::{Ed25519KeyPair, Signature, KeyPair, VerificationAlgorithm, EdDSAParameters}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SystemTime`, `UNIX_EPOCH` [INFO] [stdout] --> src/network/worker.rs:17:17 [INFO] [stdout] | [INFO] [stdout] 17 | use std::time::{SystemTime, UNIX_EPOCH}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `time` [INFO] [stdout] --> src/network/worker.rs:23:19 [INFO] [stdout] | [INFO] [stdout] 23 | use std::{thread, time}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::transaction` [INFO] [stdout] --> src/network/worker.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use crate::transaction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ascii::escape_default` [INFO] [stdout] --> src/network/worker.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use std::ascii::escape_default; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [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: `thread_rng` [INFO] [stdout] --> src/transaction.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | use rand::{thread_rng, Rng}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::distributions::Alphanumeric` [INFO] [stdout] --> src/transaction.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use rand::distributions::Alphanumeric; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SystemTime`, `UNIX_EPOCH` [INFO] [stdout] --> src/transaction.rs:17:17 [INFO] [stdout] | [INFO] [stdout] 17 | use std::time::{SystemTime, UNIX_EPOCH}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Prefix::Verbatim` [INFO] [stdout] --> src/transaction.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use std::path::Prefix::Verbatim; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/transaction.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead`, `BufReader` [INFO] [stdout] --> src/transaction.rs:23:15 [INFO] [stdout] | [INFO] [stdout] 23 | use std::io::{BufReader, BufRead}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/transaction.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num_integer::Roots` [INFO] [stdout] --> src/transaction.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use num_integer::Roots; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `witness` should have an upper camel case name [INFO] [stdout] --> src/transaction.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct witness { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `input` should have an upper camel case name [INFO] [stdout] --> src/transaction.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct input { [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `output` should have an upper camel case name [INFO] [stdout] --> src/transaction.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct output { [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/transaction.rs:204:32 [INFO] [stdout] | [INFO] [stdout] 204 | blockchain: Arc::clone((blockchain)), [INFO] [stdout] | ^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/transaction.rs:324:19 [INFO] [stdout] | [INFO] [stdout] 324 | if(self.local_address != archival_address[0]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hex_literal` [INFO] [stdout] --> src/accumulator.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use hex_literal; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hashable` [INFO] [stdout] --> src/accumulator.rs:3:33 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::crypto::hash::{H256, Hashable, H160}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SignedTransaction`, `StateWitness`, `Transaction` [INFO] [stdout] --> src/accumulator.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::transaction::{Transaction, SignedTransaction, StateWitness}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BigUint` [INFO] [stdout] --> src/accumulator.rs:9:25 [INFO] [stdout] | [INFO] [stdout] 9 | use num_bigint::{BigInt,BigUint}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Mutex` [INFO] [stdout] --> src/accumulator.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::sync::Mutex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/main.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead`, `BufReader` [INFO] [stdout] --> src/main.rs:31:15 [INFO] [stdout] | [INFO] [stdout] 31 | use std::io::{BufReader, BufRead}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transaction` [INFO] [stdout] --> src/block.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::transaction::{Transaction, SignedTransaction, generate_random_signed_transaction_}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::distributions::Alphanumeric` [INFO] [stdout] --> src/block.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use rand::distributions::Alphanumeric; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `digest` [INFO] [stdout] --> src/block.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | use ring::{digest}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/block.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | use std::time::{Duration, SystemTime, UNIX_EPOCH}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Hashable_160` should have an upper camel case name [INFO] [stdout] --> src/crypto/hash.rs:129:11 [INFO] [stdout] | [INFO] [stdout] 129 | pub trait Hashable_160 { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Hashable160` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::info` [INFO] [stdout] --> src/crypto/merkle.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use log::info; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transaction` [INFO] [stdout] --> src/miner.rs:9:26 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::transaction::{Transaction, Mempool, SignedTransaction, StateWitness}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `digest` [INFO] [stdout] --> src/miner.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | use ring::{digest}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/miner.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | use log::{info,debug}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fs` [INFO] [stdout] --> src/miner.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | use std::{time, fs}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ring::signature::Ed25519KeyPair` [INFO] [stdout] --> src/miner.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use ring::signature::Ed25519KeyPair; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hashable` [INFO] [stdout] --> src/network/message.rs:3:33 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::crypto::hash::{H256, Hashable, H160}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `StateWitness`, `Transaction` [INFO] [stdout] --> src/network/message.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::transaction::{Transaction, SignedTransaction,StateWitness}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Content`, `Header` [INFO] [stdout] --> src/network/worker.rs:10:26 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::block::{Block,Header,Content}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MerkleTree` [INFO] [stdout] --> src/network/worker.rs:11:29 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::crypto::merkle::{MerkleTree}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Ed25519KeyPair`, `EdDSAParameters`, `KeyPair`, `Signature`, `VerificationAlgorithm` [INFO] [stdout] --> src/network/worker.rs:14:23 [INFO] [stdout] | [INFO] [stdout] 14 | use ring::signature::{Ed25519KeyPair, Signature, KeyPair, VerificationAlgorithm, EdDSAParameters}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SystemTime`, `UNIX_EPOCH` [INFO] [stdout] --> src/network/worker.rs:17:17 [INFO] [stdout] | [INFO] [stdout] 17 | use std::time::{SystemTime, UNIX_EPOCH}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `time` [INFO] [stdout] --> src/network/worker.rs:23:19 [INFO] [stdout] | [INFO] [stdout] 23 | use std::{thread, time}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::transaction` [INFO] [stdout] --> src/network/worker.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use crate::transaction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ascii::escape_default` [INFO] [stdout] --> src/network/worker.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use std::ascii::escape_default; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [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: `thread_rng` [INFO] [stdout] --> src/transaction.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | use rand::{thread_rng, Rng}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::distributions::Alphanumeric` [INFO] [stdout] --> src/transaction.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use rand::distributions::Alphanumeric; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SystemTime`, `UNIX_EPOCH` [INFO] [stdout] --> src/transaction.rs:17:17 [INFO] [stdout] | [INFO] [stdout] 17 | use std::time::{SystemTime, UNIX_EPOCH}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Prefix::Verbatim` [INFO] [stdout] --> src/transaction.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use std::path::Prefix::Verbatim; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/transaction.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead`, `BufReader` [INFO] [stdout] --> src/transaction.rs:23:15 [INFO] [stdout] | [INFO] [stdout] 23 | use std::io::{BufReader, BufRead}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/transaction.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num_integer::Roots` [INFO] [stdout] --> src/transaction.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use num_integer::Roots; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `witness` should have an upper camel case name [INFO] [stdout] --> src/transaction.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct witness { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `input` should have an upper camel case name [INFO] [stdout] --> src/transaction.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct input { [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `output` should have an upper camel case name [INFO] [stdout] --> src/transaction.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct output { [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/transaction.rs:204:32 [INFO] [stdout] | [INFO] [stdout] 204 | blockchain: Arc::clone((blockchain)), [INFO] [stdout] | ^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/transaction.rs:324:19 [INFO] [stdout] | [INFO] [stdout] 324 | if(self.local_address != archival_address[0]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hex_literal` [INFO] [stdout] --> src/accumulator.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use hex_literal; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hashable` [INFO] [stdout] --> src/accumulator.rs:3:33 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::crypto::hash::{H256, Hashable, H160}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SignedTransaction`, `StateWitness`, `Transaction` [INFO] [stdout] --> src/accumulator.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::transaction::{Transaction, SignedTransaction, StateWitness}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BigUint` [INFO] [stdout] --> src/accumulator.rs:9:25 [INFO] [stdout] | [INFO] [stdout] 9 | use num_bigint::{BigInt,BigUint}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Mutex` [INFO] [stdout] --> src/accumulator.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::sync::Mutex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/main.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead`, `BufReader` [INFO] [stdout] --> src/main.rs:31:15 [INFO] [stdout] | [INFO] [stdout] 31 | use std::io::{BufReader, BufRead}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::prelude` [INFO] [stdout] --> src/block.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use chrono::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hash` [INFO] [stdout] --> src/network/worker.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use std::hash::Hash; [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: `Hashable_160` [INFO] [stdout] --> src/transaction.rs:3:49 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::crypto::hash::{H256, Hashable, H160, Hashable_160}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_file` [INFO] [stdout] --> src/main.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 112 | let new_file = OpenOptions::new().write(true).create_new(true).open("ICO.txt"); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_file` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `leaf_size` [INFO] [stdout] --> src/crypto/merkle.rs:134:72 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn verify(root: &H256, datum: &H256, proof: &[H256], index: usize, leaf_size: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_leaf_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/crypto/merkle.rs:95:13 [INFO] [stdout] | [INFO] [stdout] 95 | for i in 0..realHeight { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/miner.rs:198:21 [INFO] [stdout] | [INFO] [stdout] 198 | for key in mempool.Transactions.keys(){ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tip_hash` [INFO] [stdout] --> src/miner.rs:271:33 [INFO] [stdout] | [INFO] [stdout] 271 | ... let tip_hash = blockchain.insert(&newBlock); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tip_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `orphanbuffer` [INFO] [stdout] --> src/network/worker.rs:147:25 [INFO] [stdout] | [INFO] [stdout] 147 | let mut orphanbuffer = self.orphanbuffer.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_orphanbuffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tip_hash` [INFO] [stdout] --> src/network/worker.rs:230:45 [INFO] [stdout] | [INFO] [stdout] 230 | ... let tip_hash = blockchain.insert(&block); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tip_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `dest_value` is never read [INFO] [stdout] --> src/transaction.rs:413:21 [INFO] [stdout] | [INFO] [stdout] 413 | let mut dest_value:f32 = 0.0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [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/main.rs:98:9 [INFO] [stdout] | [INFO] [stdout] 98 | let mut new_blockchain = blockchain::Blockchain::new(); [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/main.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | let mut new_orphanbuffer = worker::OrphanBuffer::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:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | let mut new_Mempool = transaction::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:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | let mut new_StateWitness = transaction::StateWitness::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:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | let mut new_Accumulator = accumulator::Accumulator::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/block.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let mut nonce:u32 = thread_rng().gen(); [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/block.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | let mut timestamp = SystemTime::now().duration_since(UNIX_EPOCH).expect("Time went backwards").as_millis(); [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/block.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | let mut MerkleTree = MerkleTree::new(&transaction); [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/blockchain.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let mut block = generate_random_block_(&genesis_hash); [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/crypto/hash.rs:141:13 [INFO] [stdout] | [INFO] [stdout] 141 | let mut Hash256 : H256 = ring::digest::digest(&ring::digest::SHA256, &self.0).into(); [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/miner.rs:194:21 [INFO] [stdout] | [INFO] [stdout] 194 | let mut stateWitness = self.stateWitness.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/miner.rs:195:21 [INFO] [stdout] | [INFO] [stdout] 195 | let mut mempool = self.mempool.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/miner.rs:226:25 [INFO] [stdout] | [INFO] [stdout] 226 | let mut MerkleTree = MerkleTree::new(&signedTransaction); [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/miner.rs:250:29 [INFO] [stdout] | [INFO] [stdout] 250 | let mut contents = newBlock.Content.content.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/miner.rs:252:29 [INFO] [stdout] | [INFO] [stdout] 252 | let mut stateWitness = self.stateWitness.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/miner.rs:253:29 [INFO] [stdout] | [INFO] [stdout] 253 | let mut mempool = self.mempool.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/network/worker.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | let mut orphan_buffer:HashMap> = HashMap::new(); // Parent <-> Vec [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:146:25 [INFO] [stdout] | [INFO] [stdout] 146 | let mut blockchain = self.blockchain.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/network/worker.rs:147:25 [INFO] [stdout] | [INFO] [stdout] 147 | let mut orphanbuffer = self.orphanbuffer.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/network/worker.rs:166:25 [INFO] [stdout] | [INFO] [stdout] 166 | let mut hashes = hashes.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:167:25 [INFO] [stdout] | [INFO] [stdout] 167 | let mut blockchain = self.blockchain.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/network/worker.rs:185:25 [INFO] [stdout] | [INFO] [stdout] 185 | let mut blocks = blocks.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:205:41 [INFO] [stdout] | [INFO] [stdout] 205 | ... let mut contents = block.Content.content.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:207:41 [INFO] [stdout] | [INFO] [stdout] 207 | ... let mut stateWitness = self.stateWitness.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/network/worker.rs:271:53 [INFO] [stdout] | [INFO] [stdout] 271 | ... let mut witness = A / (values.2 as u128); [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:312:37 [INFO] [stdout] | [INFO] [stdout] 312 | ... let mut contents = orphan.Content.content.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:314:37 [INFO] [stdout] | [INFO] [stdout] 314 | ... let mut stateWitness = self.stateWitness.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/network/worker.rs:315:37 [INFO] [stdout] | [INFO] [stdout] 315 | ... let mut mempool = self.mempool.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/network/worker.rs:359:49 [INFO] [stdout] | [INFO] [stdout] 359 | ... let mut witness = A / (values.2 as u128); [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:389:25 [INFO] [stdout] | [INFO] [stdout] 389 | let mut mempool = self.mempool.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/network/worker.rs:407:25 [INFO] [stdout] | [INFO] [stdout] 407 | let mut mempool = self.mempool.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/network/worker.rs:409:25 [INFO] [stdout] | [INFO] [stdout] 409 | let mut hashes = hashes.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:429:25 [INFO] [stdout] | [INFO] [stdout] 429 | let mut stateWitness = self.stateWitness.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/network/worker.rs:430:25 [INFO] [stdout] | [INFO] [stdout] 430 | let mut Transactions = Transactions.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/transaction.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | let mut transaction = t.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/transaction.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | let mut signature = signature.as_ref().to_vec(); [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:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | let mut publicKey = public_key.as_ref().to_vec(); [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:306:25 [INFO] [stdout] | [INFO] [stdout] 306 | let mut start = i * 20; [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:307:25 [INFO] [stdout] | [INFO] [stdout] 307 | let mut end = (i + 1) * 20; [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:310:25 [INFO] [stdout] | [INFO] [stdout] 310 | let mut address: H160 = ::from(addr_u8); [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:347:25 [INFO] [stdout] | [INFO] [stdout] 347 | let mut witness = A / (values.2 as u128); [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:376:21 [INFO] [stdout] | [INFO] [stdout] 376 | let mut stateWitness = self.stateWitness.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:432:21 [INFO] [stdout] | [INFO] [stdout] 432 | let mut num = rng.gen_range(0, other_address.len()); [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:444:25 [INFO] [stdout] | [INFO] [stdout] 444 | let mut transaction = generate_transaction(&pre_hash, &pre_index, &witness_vec , &out_value, &recp_addr); [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:451:25 [INFO] [stdout] | [INFO] [stdout] 451 | let mut stateWitness = self.stateWitness.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:633:9 [INFO] [stdout] | [INFO] [stdout] 633 | let mut rand_addr_H160 = ::from(digest::digest(&digest::SHA256,"442cabd17e40d95ac0932d977c0759397b9db4d93c4d62c368b95419db574db... [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:636:9 [INFO] [stdout] | [INFO] [stdout] 636 | let mut rand_u32:u32 = rand::thread_rng().gen(); [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:637:9 [INFO] [stdout] | [INFO] [stdout] 637 | let mut rand_u32_vec = [rand_u32].to_vec(); [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:638:9 [INFO] [stdout] | [INFO] [stdout] 638 | let mut rand_f32:f32 = rand::thread_rng().gen(); [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:639:9 [INFO] [stdout] | [INFO] [stdout] 639 | let mut rand_f32_vec = [rand_f32].to_vec(); [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:640:9 [INFO] [stdout] | [INFO] [stdout] 640 | let mut rand_u128:u128 = rand::thread_rng().gen(); [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:641:9 [INFO] [stdout] | [INFO] [stdout] 641 | let mut witness = witness{prime_number:rand_u32, witness: rand_u128,}; [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:642:9 [INFO] [stdout] | [INFO] [stdout] 642 | let mut witness_vec = [witness].to_vec(); [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:644:9 [INFO] [stdout] | [INFO] [stdout] 644 | let mut transaction = generate_transaction(&new_hash_vec,&rand_u32_vec, &witness_vec,&rand_f32_vec,&rand_addr); [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/accumulator.rs:18:6 [INFO] [stdout] | [INFO] [stdout] 18 | let mut f1: BigInt = One::one(); [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/accumulator.rs:26:6 [INFO] [stdout] | [INFO] [stdout] 26 | let mut f1: BigInt = One::one(); [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/accumulator.rs:108:6 [INFO] [stdout] | [INFO] [stdout] 108 | let mut j:u32 = rng.gen_range(2,9); [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/accumulator.rs:111:6 [INFO] [stdout] | [INFO] [stdout] 111 | let mut j:u32 = rng.gen_range(2,7); [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/accumulator.rs:128:7 [INFO] [stdout] | [INFO] [stdout] 128 | let mut prime_set = HashSet::::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/accumulator.rs:137:7 [INFO] [stdout] | [INFO] [stdout] 137 | let mut j:u32 = rng.gen_range(2, 10); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `local_address` [INFO] [stdout] --> src/miner.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | local_address: H160, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `local_public_key` [INFO] [stdout] --> src/miner.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | local_public_key: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused attribute [INFO] [stdout] --> src/accumulator.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `new_Mempool` should have a snake case name [INFO] [stdout] --> src/main.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | let mut new_Mempool = transaction::Mempool::new(); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `new_mempool` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `new_StateWitness` should have a snake case name [INFO] [stdout] --> src/main.rs:104:13 [INFO] [stdout] | [INFO] [stdout] 104 | let mut new_StateWitness = transaction::StateWitness::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `new_state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/main.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | let stateWitness = Arc::new(Mutex::new(new_StateWitness)); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `new_Accumulator` should have a snake case name [INFO] [stdout] --> src/main.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | let mut new_Accumulator = accumulator::Accumulator::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `new_accumulator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ifArchival` should have a snake case name [INFO] [stdout] --> src/main.rs:116:13 [INFO] [stdout] | [INFO] [stdout] 116 | let mut ifArchival = false; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `if_archival` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `merkleRoot` should have a snake case name [INFO] [stdout] --> src/block.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub merkleRoot: H256, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `merkle_root` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Header` should have a snake case name [INFO] [stdout] --> src/block.rs:31:6 [INFO] [stdout] | [INFO] [stdout] 31 | pub Header: Header, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Content` should have a snake case name [INFO] [stdout] --> src/block.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | pub Content: Content, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `content` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MerkleTree` should have a snake case name [INFO] [stdout] --> src/block.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 68 | let mut MerkleTree = MerkleTree::new(&transaction); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `merkle_tree` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newHeader` should have a snake case name [INFO] [stdout] --> src/block.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | let newHeader = Header{ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `new_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newContent` should have a snake case name [INFO] [stdout] --> src/block.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | let newContent = Content{ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `new_content` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newBlock` should have a snake case name [INFO] [stdout] --> src/block.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | let newBlock = Block{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `new_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Blocks` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub Blocks: HashMap, //H256 - [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `blocks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Blocks` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | let mut Blocks:HashMap = HashMap::new(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `blocks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `blockLists` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:49:17 [INFO] [stdout] | [INFO] [stdout] 49 | let mut blockLists = Vec::::new(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `block_lists` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `parentHash` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:54:17 [INFO] [stdout] | [INFO] [stdout] 54 | let parentHash = self.Blocks.get(&hash).as_ref().unwrap().0.getparent(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `parent_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Hash256` should have a snake case name [INFO] [stdout] --> src/crypto/hash.rs:141:17 [INFO] [stdout] | [INFO] [stdout] 141 | let mut Hash256 : H256 = ring::digest::digest(&ring::digest::SHA256, &self.0).into(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `hash256` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Hash160` should have a snake case name [INFO] [stdout] --> src/crypto/hash.rs:142:17 [INFO] [stdout] | [INFO] [stdout] 142 | let mut Hash160 = [0; 20]; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `hash160` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `leafNodes` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 34 | let mut leafNodes = Vec::with_capacity(length); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `leaf_nodes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `childrenNodes` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:44:17 [INFO] [stdout] | [INFO] [stdout] 44 | let mut childrenNodes = leafNodes.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `children_nodes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `curLength` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:45:17 [INFO] [stdout] | [INFO] [stdout] 45 | let mut curLength = childrenNodes.len(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `cur_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `TreeNodes` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:48:21 [INFO] [stdout] | [INFO] [stdout] 48 | let mut TreeNodes:Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `tree_nodes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `leftNode` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:58:21 [INFO] [stdout] | [INFO] [stdout] 58 | let leftNode = childrenNodes.remove(0); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `left_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `leftNodeVal` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:59:21 [INFO] [stdout] | [INFO] [stdout] 59 | let leftNodeVal = (leftNode.val).as_ref(); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `left_node_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rightNode` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:61:21 [INFO] [stdout] | [INFO] [stdout] 61 | let rightNode = childrenNodes.remove(0); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `right_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rightNodeVal` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:62:21 [INFO] [stdout] | [INFO] [stdout] 62 | let rightNodeVal = (rightNode.val).as_ref(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `right_node_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `parentNodeVal` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:64:21 [INFO] [stdout] | [INFO] [stdout] 64 | let parentNodeVal = ::from(digest::digest(&digest::SHA256, &([&leftNodeVal[..], &rightNodeVal[..]].concat()))); [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `parent_node_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `parentNode` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:66:21 [INFO] [stdout] | [INFO] [stdout] 66 | let parentNode = TreeNode{val: parentNodeVal ,left:Some(Box::new(leftNode)),right:Some(Box::new(rightNode))}; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `parent_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `curNode` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:88:17 [INFO] [stdout] | [INFO] [stdout] 88 | let mut curNode = self.root.as_ref().unwrap(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `cur_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proofVec` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:89:17 [INFO] [stdout] | [INFO] [stdout] 89 | let mut proofVec:Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `proof_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `realIndex` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | let realIndex = (index + 1) as i32; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `real_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `realHeight` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | let realHeight = self.height; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `real_height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `oriCenter` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:94:17 [INFO] [stdout] | [INFO] [stdout] 94 | let mut oriCenter = center; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `ori_center` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `leftNode` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:97:17 [INFO] [stdout] | [INFO] [stdout] 97 | let leftNode = curNode.left.as_ref(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `left_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rightNode` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:98:17 [INFO] [stdout] | [INFO] [stdout] 98 | let rightNode = curNode.right.as_ref(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `right_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getHeight` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:119:8 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn getHeight(mut length:usize) -> usize { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `get_height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proofVec` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:137:13 [INFO] [stdout] | [INFO] [stdout] 137 | let mut proofVec = Vec::from(proof.clone()); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `proof_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `realIndex` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:138:13 [INFO] [stdout] | [INFO] [stdout] 138 | let mut realIndex = index + 1; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `real_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `parentVal` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:145:17 [INFO] [stdout] | [INFO] [stdout] 145 | let parentVal = ::from(digest::digest(&digest::SHA256, &([&left[..], &right[..]].concat()))); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `parent_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `parentVal` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:154:17 [INFO] [stdout] | [INFO] [stdout] 154 | let parentVal = ::from(digest::digest(&digest::SHA256, &([&left[..], &right[..]].concat()))); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `parent_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `stateWitness` should have a snake case name [INFO] [stdout] --> src/miner.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | stateWitness: Arc>, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `ifArchival` should have a snake case name [INFO] [stdout] --> src/miner.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | ifArchival: bool, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `if_archival` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/miner.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | stateWitness: &Arc>, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ifArchival` should have a snake case name [INFO] [stdout] --> src/miner.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | ifArchival: bool, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `if_archival` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `signedTransaction` should have a snake case name [INFO] [stdout] --> src/miner.rs:189:25 [INFO] [stdout] | [INFO] [stdout] 189 | let mut signedTransaction = Vec::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `signed_transaction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/miner.rs:194:25 [INFO] [stdout] | [INFO] [stdout] 194 | let mut stateWitness = self.stateWitness.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MerkleTree` should have a snake case name [INFO] [stdout] --> src/miner.rs:226:29 [INFO] [stdout] | [INFO] [stdout] 226 | let mut MerkleTree = MerkleTree::new(&signedTransaction); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `merkle_tree` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newContent` should have a snake case name [INFO] [stdout] --> src/miner.rs:228:25 [INFO] [stdout] | [INFO] [stdout] 228 | let newContent = Content{ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `new_content` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newHeader` should have a snake case name [INFO] [stdout] --> src/miner.rs:232:25 [INFO] [stdout] | [INFO] [stdout] 232 | let newHeader = Header{ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `new_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newBlock` should have a snake case name [INFO] [stdout] --> src/miner.rs:240:25 [INFO] [stdout] | [INFO] [stdout] 240 | let newBlock = Block{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `new_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/miner.rs:252:33 [INFO] [stdout] | [INFO] [stdout] 252 | let mut stateWitness = self.stateWitness.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `HashMap` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub HashMap: HashMap>, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `hash_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getOrphanBlocks` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn getOrphanBlocks(&self, Hash:&H256) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_orphan_blocks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Hash` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:42:35 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn getOrphanBlocks(&self, Hash:&H256) -> Vec { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Blocks` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:43:17 [INFO] [stdout] | [INFO] [stdout] 43 | let mut Blocks = Vec::::new(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `blocks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Parent` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:50:30 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn insert(&mut self, Parent:H256, Blocks:Vec) { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `parent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Blocks` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:50:43 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn insert(&mut self, Parent:H256, Blocks:Vec) { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `blocks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Hash` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:54:30 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn remove(&mut self, Hash:&H256) { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isParentIn` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn isParentIn(&self, Hash:&H256) -> bool { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `is_parent_in` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Hash` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:60:30 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn isParentIn(&self, Hash:&H256) -> bool { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `stateWitness` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 74 | stateWitness: Arc>, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `ifArchival` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | ifArchival: bool, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `if_archival` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 88 | stateWitness: &Arc>, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ifArchival` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | ifArchival: bool [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `if_archival` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `notContainedHashes` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:145:29 [INFO] [stdout] | [INFO] [stdout] 145 | let mut notContainedHashes = Vec::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `not_contained_hashes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `notContainedBlocks` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:165:29 [INFO] [stdout] | [INFO] [stdout] 165 | let mut notContainedBlocks = Vec::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `not_contained_blocks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newlyOrphanParent` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:189:29 [INFO] [stdout] | [INFO] [stdout] 189 | let mut newlyOrphanParent = Vec::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `newly_orphan_parent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newlyProcessedBlockHashes` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:190:29 [INFO] [stdout] | [INFO] [stdout] 190 | let mut newlyProcessedBlockHashes = Vec::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `newly_processed_block_hashes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:207:45 [INFO] [stdout] | [INFO] [stdout] 207 | ... let mut stateWitness = self.stateWitness.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:248:53 [INFO] [stdout] | [INFO] [stdout] 248 | ... let mut stateWitness = self.stateWitness.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:266:49 [INFO] [stdout] | [INFO] [stdout] 266 | ... let A = accumulator.accumulate(); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newlyOrphans` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:293:45 [INFO] [stdout] | [INFO] [stdout] 293 | ... let mut newlyOrphans = Vec::::new(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `newly_orphans` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:314:41 [INFO] [stdout] | [INFO] [stdout] 314 | ... let mut stateWitness = self.stateWitness.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:340:49 [INFO] [stdout] | [INFO] [stdout] 340 | ... let mut stateWitness = self.stateWitness.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:354:45 [INFO] [stdout] | [INFO] [stdout] 354 | ... let A = accumulator.accumulate(); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `notContainedHashes` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:390:29 [INFO] [stdout] | [INFO] [stdout] 390 | let mut notContainedHashes = Vec::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `not_contained_hashes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `notContainedTransactions` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:408:29 [INFO] [stdout] | [INFO] [stdout] 408 | let mut notContainedTransactions = Vec::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `not_contained_transactions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Transactions` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:425:39 [INFO] [stdout] | [INFO] [stdout] 425 | Message::Transactions(Transactions) => { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `transactions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:429:29 [INFO] [stdout] | [INFO] [stdout] 429 | let mut stateWitness = self.stateWitness.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Transactions` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:430:29 [INFO] [stdout] | [INFO] [stdout] 430 | let mut Transactions = Transactions.clone(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `transactions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `addedTransactionHashes` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:431:29 [INFO] [stdout] | [INFO] [stdout] 431 | let mut addedTransactionHashes = Vec::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `added_transaction_hashes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Transaction` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:433:25 [INFO] [stdout] | [INFO] [stdout] 433 | for Transaction in Transactions.iter(){ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `transaction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newState` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:454:43 [INFO] [stdout] | [INFO] [stdout] 454 | Message::NewStateWitness( newState, newProof) => { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `new_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newProof` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:454:53 [INFO] [stdout] | [INFO] [stdout] 454 | Message::NewStateWitness( newState, newProof) => { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `new_proof` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:457:33 [INFO] [stdout] | [INFO] [stdout] 457 | let mut stateWitness = self.stateWitness.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `prevTransaction` should have a snake case name [INFO] [stdout] --> src/transaction.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub prevTransaction: H256, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `prev_transaction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `preOutputIndex` should have a snake case name [INFO] [stdout] --> src/transaction.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | pub preOutputIndex: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `pre_output_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `recpAddress` should have a snake case name [INFO] [stdout] --> src/transaction.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | pub recpAddress: H160, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `recp_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Input` should have a snake case name [INFO] [stdout] --> src/transaction.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | pub Input: Vec, [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Output` should have a snake case name [INFO] [stdout] --> src/transaction.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | pub Output: Vec, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `publicKey` should have a snake case name [INFO] [stdout] --> src/transaction.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | pub publicKey: Vec, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `public_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `publicKey` should have a snake case name [INFO] [stdout] --> src/transaction.rs:83:17 [INFO] [stdout] | [INFO] [stdout] 83 | let mut publicKey = public_key.as_ref().to_vec(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `public_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `verifySignedTransaction` should have a snake case name [INFO] [stdout] --> src/transaction.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn verifySignedTransaction(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `verify_signed_transaction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Transactions` should have a snake case name [INFO] [stdout] --> src/transaction.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | pub Transactions: HashMap, // hash <-> transaction(signed) [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `transactions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `updateMempool` should have a snake case name [INFO] [stdout] --> src/transaction.rs:145:12 [INFO] [stdout] | [INFO] [stdout] 145 | pub fn updateMempool(&mut self, SignedTransaction: &Vec){ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `update_mempool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `SignedTransaction` should have a snake case name [INFO] [stdout] --> src/transaction.rs:145:37 [INFO] [stdout] | [INFO] [stdout] 145 | pub fn updateMempool(&mut self, SignedTransaction: &Vec){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `signed_transaction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `signedTransaction` should have a snake case name [INFO] [stdout] --> src/transaction.rs:146:13 [INFO] [stdout] | [INFO] [stdout] 146 | for signedTransaction in SignedTransaction{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `signed_transaction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `stateWitness` should have a snake case name [INFO] [stdout] --> src/transaction.rs:169:5 [INFO] [stdout] | [INFO] [stdout] 169 | stateWitness: Arc>, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `ifArchival` should have a snake case name [INFO] [stdout] --> src/transaction.rs:178:5 [INFO] [stdout] | [INFO] [stdout] 178 | ifArchival: bool, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `if_archival` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/transaction.rs:191:5 [INFO] [stdout] | [INFO] [stdout] 191 | stateWitness: &Arc>, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ifArchival` should have a snake case name [INFO] [stdout] --> src/transaction.rs:197:5 [INFO] [stdout] | [INFO] [stdout] 197 | ifArchival: bool, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `if_archival` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `readADD` should have a snake case name [INFO] [stdout] --> src/transaction.rs:261:17 [INFO] [stdout] | [INFO] [stdout] 261 | let mut readADD: bool = false; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `read_add` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ICO` should have a snake case name [INFO] [stdout] --> src/transaction.rs:262:17 [INFO] [stdout] | [INFO] [stdout] 262 | let mut ICO: bool = false; [INFO] [stdout] | ^^^ help: convert the identifier to snake case (notice the capitalization): `ico` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/transaction.rs:330:25 [INFO] [stdout] | [INFO] [stdout] 330 | let mut stateWitness = self.stateWitness.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/transaction.rs:341:21 [INFO] [stdout] | [INFO] [stdout] 341 | let A = accumulator.accumulate(); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `myStateWitness` should have a snake case name [INFO] [stdout] --> src/transaction.rs:373:21 [INFO] [stdout] | [INFO] [stdout] 373 | let mut myStateWitness = Vec::<(H256, u32, u32, u128)>::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `my_state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/transaction.rs:376:25 [INFO] [stdout] | [INFO] [stdout] 376 | let mut stateWitness = self.stateWitness.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Iteration` should have a snake case name [INFO] [stdout] --> src/transaction.rs:407:21 [INFO] [stdout] | [INFO] [stdout] 407 | for Iteration in myStateWitness.iter() { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `iteration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `SignedTransaction` should have a snake case name [INFO] [stdout] --> src/transaction.rs:446:25 [INFO] [stdout] | [INFO] [stdout] 446 | let SignedTransaction = SignedTransaction::new(&transaction, &signature, &self.key_pair.public_key()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `signed_transaction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/transaction.rs:451:29 [INFO] [stdout] | [INFO] [stdout] 451 | let mut stateWitness = self.stateWitness.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `txHash` should have a snake case name [INFO] [stdout] --> src/transaction.rs:472:33 [INFO] [stdout] | [INFO] [stdout] 472 | let mut txHash = Vec::::new(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `tx_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `preHash` should have a snake case name [INFO] [stdout] --> src/transaction.rs:503:29 [INFO] [stdout] | [INFO] [stdout] 503 | pub fn generate_transaction(preHash:&Vec, preIndex:&Vec, witness: &Vec, outValue:&Vec, recpAddress:&Vec) -... [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `pre_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `preIndex` should have a snake case name [INFO] [stdout] --> src/transaction.rs:503:49 [INFO] [stdout] | [INFO] [stdout] 503 | pub fn generate_transaction(preHash:&Vec, preIndex:&Vec, witness: &Vec, outValue:&Vec, recpAddress:&Vec) -... [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `pre_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `outValue` should have a snake case name [INFO] [stdout] --> src/transaction.rs:503:93 [INFO] [stdout] | [INFO] [stdout] 503 | ...&Vec, witness: &Vec, outValue:&Vec, recpAddress:&Vec) -> Transaction { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `out_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `recpAddress` should have a snake case name [INFO] [stdout] --> src/transaction.rs:503:113 [INFO] [stdout] | [INFO] [stdout] 503 | ...c, outValue:&Vec, recpAddress:&Vec) -> Transaction { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `recp_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `inputVec` should have a snake case name [INFO] [stdout] --> src/transaction.rs:505:13 [INFO] [stdout] | [INFO] [stdout] 505 | let mut inputVec = Vec::::new(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `input_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `outputVec` should have a snake case name [INFO] [stdout] --> src/transaction.rs:506:13 [INFO] [stdout] | [INFO] [stdout] 506 | let mut outputVec = Vec::::new(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `output_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `States` should have a snake case name [INFO] [stdout] --> src/transaction.rs:552:9 [INFO] [stdout] | [INFO] [stdout] 552 | pub States: HashMap<(H256, u32),(f32, H160, u32, u128)>, // (prev TX Hash, prev Output Index) <-> (Output Value, Recipient Addr, Pri... [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `states` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `AccumulatorProof` should have a snake case name [INFO] [stdout] --> src/transaction.rs:553:9 [INFO] [stdout] | [INFO] [stdout] 553 | pub AccumulatorProof: HashMap, // Block Hash <-> Accumulator [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `accumulator_proof` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `ifNotDoubleSpent` should have a snake case name [INFO] [stdout] --> src/transaction.rs:566:12 [INFO] [stdout] | [INFO] [stdout] 566 | pub fn ifNotDoubleSpent (&self, Input: &Vec, Block_Hash: &H256) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `if_not_double_spent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Input` should have a snake case name [INFO] [stdout] --> src/transaction.rs:566:37 [INFO] [stdout] | [INFO] [stdout] 566 | pub fn ifNotDoubleSpent (&self, Input: &Vec, Block_Hash: &H256) -> bool { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Block_Hash` should have a snake case name [INFO] [stdout] --> src/transaction.rs:566:57 [INFO] [stdout] | [INFO] [stdout] 566 | pub fn ifNotDoubleSpent (&self, Input: &Vec, Block_Hash: &H256) -> bool { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `block_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `AccumulatorProof` should have a snake case name [INFO] [stdout] --> src/transaction.rs:573:21 [INFO] [stdout] | [INFO] [stdout] 573 | let AccumulatorProof = self.AccumulatorProof.get(&Block_Hash).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `accumulator_proof` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `addStates` should have a snake case name [INFO] [stdout] --> src/transaction.rs:588:12 [INFO] [stdout] | [INFO] [stdout] 588 | pub fn addStates(&mut self, transaction_hash: H256, output_index: u32, output_value: f32, recp_address: H160, prime_number: u32, witn... [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `add_states` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `deleteStates` should have a snake case name [INFO] [stdout] --> src/transaction.rs:594:12 [INFO] [stdout] | [INFO] [stdout] 594 | pub fn deleteStates(&mut self, transaction_hash: H256, output_index: u32) { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `delete_states` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `updateAccumulator` should have a snake case name [INFO] [stdout] --> src/transaction.rs:600:12 [INFO] [stdout] | [INFO] [stdout] 600 | pub fn updateAccumulator(&mut self, Block_Hash: H256, AccumulatorProof: u128) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `update_accumulator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Block_Hash` should have a snake case name [INFO] [stdout] --> src/transaction.rs:600:41 [INFO] [stdout] | [INFO] [stdout] 600 | pub fn updateAccumulator(&mut self, Block_Hash: H256, AccumulatorProof: u128) { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `block_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `AccumulatorProof` should have a snake case name [INFO] [stdout] --> src/transaction.rs:600:59 [INFO] [stdout] | [INFO] [stdout] 600 | pub fn updateAccumulator(&mut self, Block_Hash: H256, AccumulatorProof: u128) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `accumulator_proof` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getAllStates` should have a snake case name [INFO] [stdout] --> src/transaction.rs:606:12 [INFO] [stdout] | [INFO] [stdout] 606 | pub fn getAllStates(&self) -> Vec<(H256, u32, f32, H160, u32, u128)>{ [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `get_all_states` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `States` should have a snake case name [INFO] [stdout] --> src/transaction.rs:608:13 [INFO] [stdout] | [INFO] [stdout] 608 | let States = self.States.clone(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `states` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getNewProof` should have a snake case name [INFO] [stdout] --> src/transaction.rs:615:12 [INFO] [stdout] | [INFO] [stdout] 615 | pub fn getNewProof(&self, block_hash: &H256) -> Vec<(H256,u128)> { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `get_new_proof` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `AccumulatorProof` should have a snake case name [INFO] [stdout] --> src/transaction.rs:617:13 [INFO] [stdout] | [INFO] [stdout] 617 | let AccumulatorProof = self.AccumulatorProof.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `accumulator_proof` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rand_addr_H160` should have a snake case name [INFO] [stdout] --> src/transaction.rs:633:13 [INFO] [stdout] | [INFO] [stdout] 633 | let mut rand_addr_H160 = ::from(digest::digest(&digest::SHA256,"442cabd17e40d95ac0932d977c0759397b9db4d93c4d62c368b95419db574db... [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `rand_addr_h160` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `SignedTransaction` should have a snake case name [INFO] [stdout] --> src/transaction.rs:647:9 [INFO] [stdout] | [INFO] [stdout] 647 | let SignedTransaction = SignedTransaction::new(&transaction,&signature,&key.public_key()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `signed_transaction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 251 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::prelude` [INFO] [stdout] --> src/block.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use chrono::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hash` [INFO] [stdout] --> src/network/worker.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use std::hash::Hash; [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: `Hashable_160` [INFO] [stdout] --> src/transaction.rs:3:49 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::crypto::hash::{H256, Hashable, H160, Hashable_160}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_file` [INFO] [stdout] --> src/main.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 112 | let new_file = OpenOptions::new().write(true).create_new(true).open("ICO.txt"); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_file` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `leaf_size` [INFO] [stdout] --> src/crypto/merkle.rs:134:72 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn verify(root: &H256, datum: &H256, proof: &[H256], index: usize, leaf_size: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_leaf_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/crypto/merkle.rs:95:13 [INFO] [stdout] | [INFO] [stdout] 95 | for i in 0..realHeight { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/miner.rs:198:21 [INFO] [stdout] | [INFO] [stdout] 198 | for key in mempool.Transactions.keys(){ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tip_hash` [INFO] [stdout] --> src/miner.rs:271:33 [INFO] [stdout] | [INFO] [stdout] 271 | ... let tip_hash = blockchain.insert(&newBlock); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tip_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `orphanbuffer` [INFO] [stdout] --> src/network/worker.rs:147:25 [INFO] [stdout] | [INFO] [stdout] 147 | let mut orphanbuffer = self.orphanbuffer.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_orphanbuffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tip_hash` [INFO] [stdout] --> src/network/worker.rs:230:45 [INFO] [stdout] | [INFO] [stdout] 230 | ... let tip_hash = blockchain.insert(&block); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tip_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `dest_value` is never read [INFO] [stdout] --> src/transaction.rs:413:21 [INFO] [stdout] | [INFO] [stdout] 413 | let mut dest_value:f32 = 0.0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [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/main.rs:98:9 [INFO] [stdout] | [INFO] [stdout] 98 | let mut new_blockchain = blockchain::Blockchain::new(); [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/main.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | let mut new_orphanbuffer = worker::OrphanBuffer::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:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | let mut new_Mempool = transaction::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:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | let mut new_StateWitness = transaction::StateWitness::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:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | let mut new_Accumulator = accumulator::Accumulator::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/block.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let mut nonce:u32 = thread_rng().gen(); [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/block.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | let mut timestamp = SystemTime::now().duration_since(UNIX_EPOCH).expect("Time went backwards").as_millis(); [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/block.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | let mut MerkleTree = MerkleTree::new(&transaction); [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/blockchain.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let mut block = generate_random_block_(&genesis_hash); [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/crypto/hash.rs:141:13 [INFO] [stdout] | [INFO] [stdout] 141 | let mut Hash256 : H256 = ring::digest::digest(&ring::digest::SHA256, &self.0).into(); [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/miner.rs:194:21 [INFO] [stdout] | [INFO] [stdout] 194 | let mut stateWitness = self.stateWitness.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/miner.rs:195:21 [INFO] [stdout] | [INFO] [stdout] 195 | let mut mempool = self.mempool.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/miner.rs:226:25 [INFO] [stdout] | [INFO] [stdout] 226 | let mut MerkleTree = MerkleTree::new(&signedTransaction); [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/miner.rs:250:29 [INFO] [stdout] | [INFO] [stdout] 250 | let mut contents = newBlock.Content.content.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/miner.rs:252:29 [INFO] [stdout] | [INFO] [stdout] 252 | let mut stateWitness = self.stateWitness.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/miner.rs:253:29 [INFO] [stdout] | [INFO] [stdout] 253 | let mut mempool = self.mempool.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/network/worker.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | let mut orphan_buffer:HashMap> = HashMap::new(); // Parent <-> Vec [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:146:25 [INFO] [stdout] | [INFO] [stdout] 146 | let mut blockchain = self.blockchain.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/network/worker.rs:147:25 [INFO] [stdout] | [INFO] [stdout] 147 | let mut orphanbuffer = self.orphanbuffer.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/network/worker.rs:166:25 [INFO] [stdout] | [INFO] [stdout] 166 | let mut hashes = hashes.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:167:25 [INFO] [stdout] | [INFO] [stdout] 167 | let mut blockchain = self.blockchain.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/network/worker.rs:185:25 [INFO] [stdout] | [INFO] [stdout] 185 | let mut blocks = blocks.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:205:41 [INFO] [stdout] | [INFO] [stdout] 205 | ... let mut contents = block.Content.content.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:207:41 [INFO] [stdout] | [INFO] [stdout] 207 | ... let mut stateWitness = self.stateWitness.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/network/worker.rs:271:53 [INFO] [stdout] | [INFO] [stdout] 271 | ... let mut witness = A / (values.2 as u128); [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:312:37 [INFO] [stdout] | [INFO] [stdout] 312 | ... let mut contents = orphan.Content.content.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:314:37 [INFO] [stdout] | [INFO] [stdout] 314 | ... let mut stateWitness = self.stateWitness.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/network/worker.rs:315:37 [INFO] [stdout] | [INFO] [stdout] 315 | ... let mut mempool = self.mempool.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/network/worker.rs:359:49 [INFO] [stdout] | [INFO] [stdout] 359 | ... let mut witness = A / (values.2 as u128); [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:389:25 [INFO] [stdout] | [INFO] [stdout] 389 | let mut mempool = self.mempool.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/network/worker.rs:407:25 [INFO] [stdout] | [INFO] [stdout] 407 | let mut mempool = self.mempool.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/network/worker.rs:409:25 [INFO] [stdout] | [INFO] [stdout] 409 | let mut hashes = hashes.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:429:25 [INFO] [stdout] | [INFO] [stdout] 429 | let mut stateWitness = self.stateWitness.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/network/worker.rs:430:25 [INFO] [stdout] | [INFO] [stdout] 430 | let mut Transactions = Transactions.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/transaction.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | let mut transaction = t.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/transaction.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | let mut signature = signature.as_ref().to_vec(); [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:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | let mut publicKey = public_key.as_ref().to_vec(); [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:306:25 [INFO] [stdout] | [INFO] [stdout] 306 | let mut start = i * 20; [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:307:25 [INFO] [stdout] | [INFO] [stdout] 307 | let mut end = (i + 1) * 20; [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:310:25 [INFO] [stdout] | [INFO] [stdout] 310 | let mut address: H160 = ::from(addr_u8); [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:347:25 [INFO] [stdout] | [INFO] [stdout] 347 | let mut witness = A / (values.2 as u128); [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:376:21 [INFO] [stdout] | [INFO] [stdout] 376 | let mut stateWitness = self.stateWitness.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:432:21 [INFO] [stdout] | [INFO] [stdout] 432 | let mut num = rng.gen_range(0, other_address.len()); [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:444:25 [INFO] [stdout] | [INFO] [stdout] 444 | let mut transaction = generate_transaction(&pre_hash, &pre_index, &witness_vec , &out_value, &recp_addr); [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:451:25 [INFO] [stdout] | [INFO] [stdout] 451 | let mut stateWitness = self.stateWitness.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:633:9 [INFO] [stdout] | [INFO] [stdout] 633 | let mut rand_addr_H160 = ::from(digest::digest(&digest::SHA256,"442cabd17e40d95ac0932d977c0759397b9db4d93c4d62c368b95419db574db... [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:636:9 [INFO] [stdout] | [INFO] [stdout] 636 | let mut rand_u32:u32 = rand::thread_rng().gen(); [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:637:9 [INFO] [stdout] | [INFO] [stdout] 637 | let mut rand_u32_vec = [rand_u32].to_vec(); [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:638:9 [INFO] [stdout] | [INFO] [stdout] 638 | let mut rand_f32:f32 = rand::thread_rng().gen(); [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:639:9 [INFO] [stdout] | [INFO] [stdout] 639 | let mut rand_f32_vec = [rand_f32].to_vec(); [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:640:9 [INFO] [stdout] | [INFO] [stdout] 640 | let mut rand_u128:u128 = rand::thread_rng().gen(); [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:641:9 [INFO] [stdout] | [INFO] [stdout] 641 | let mut witness = witness{prime_number:rand_u32, witness: rand_u128,}; [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:642:9 [INFO] [stdout] | [INFO] [stdout] 642 | let mut witness_vec = [witness].to_vec(); [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:644:9 [INFO] [stdout] | [INFO] [stdout] 644 | let mut transaction = generate_transaction(&new_hash_vec,&rand_u32_vec, &witness_vec,&rand_f32_vec,&rand_addr); [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/accumulator.rs:18:6 [INFO] [stdout] | [INFO] [stdout] 18 | let mut f1: BigInt = One::one(); [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/accumulator.rs:26:6 [INFO] [stdout] | [INFO] [stdout] 26 | let mut f1: BigInt = One::one(); [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/accumulator.rs:108:6 [INFO] [stdout] | [INFO] [stdout] 108 | let mut j:u32 = rng.gen_range(2,9); [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/accumulator.rs:111:6 [INFO] [stdout] | [INFO] [stdout] 111 | let mut j:u32 = rng.gen_range(2,7); [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/accumulator.rs:128:7 [INFO] [stdout] | [INFO] [stdout] 128 | let mut prime_set = HashSet::::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/accumulator.rs:137:7 [INFO] [stdout] | [INFO] [stdout] 137 | let mut j:u32 = rng.gen_range(2, 10); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `local_address` [INFO] [stdout] --> src/miner.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | local_address: H160, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `local_public_key` [INFO] [stdout] --> src/miner.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | local_public_key: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused attribute [INFO] [stdout] --> src/accumulator.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `new_Mempool` should have a snake case name [INFO] [stdout] --> src/main.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | let mut new_Mempool = transaction::Mempool::new(); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `new_mempool` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `new_StateWitness` should have a snake case name [INFO] [stdout] --> src/main.rs:104:13 [INFO] [stdout] | [INFO] [stdout] 104 | let mut new_StateWitness = transaction::StateWitness::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `new_state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/main.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | let stateWitness = Arc::new(Mutex::new(new_StateWitness)); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `new_Accumulator` should have a snake case name [INFO] [stdout] --> src/main.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | let mut new_Accumulator = accumulator::Accumulator::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `new_accumulator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ifArchival` should have a snake case name [INFO] [stdout] --> src/main.rs:116:13 [INFO] [stdout] | [INFO] [stdout] 116 | let mut ifArchival = false; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `if_archival` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `merkleRoot` should have a snake case name [INFO] [stdout] --> src/block.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub merkleRoot: H256, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `merkle_root` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Header` should have a snake case name [INFO] [stdout] --> src/block.rs:31:6 [INFO] [stdout] | [INFO] [stdout] 31 | pub Header: Header, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Content` should have a snake case name [INFO] [stdout] --> src/block.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | pub Content: Content, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `content` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MerkleTree` should have a snake case name [INFO] [stdout] --> src/block.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 68 | let mut MerkleTree = MerkleTree::new(&transaction); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `merkle_tree` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newHeader` should have a snake case name [INFO] [stdout] --> src/block.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | let newHeader = Header{ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `new_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newContent` should have a snake case name [INFO] [stdout] --> src/block.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | let newContent = Content{ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `new_content` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newBlock` should have a snake case name [INFO] [stdout] --> src/block.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | let newBlock = Block{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `new_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Blocks` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub Blocks: HashMap, //H256 - [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `blocks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Blocks` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | let mut Blocks:HashMap = HashMap::new(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `blocks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `blockLists` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:49:17 [INFO] [stdout] | [INFO] [stdout] 49 | let mut blockLists = Vec::::new(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `block_lists` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `parentHash` should have a snake case name [INFO] [stdout] --> src/blockchain.rs:54:17 [INFO] [stdout] | [INFO] [stdout] 54 | let parentHash = self.Blocks.get(&hash).as_ref().unwrap().0.getparent(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `parent_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Hash256` should have a snake case name [INFO] [stdout] --> src/crypto/hash.rs:141:17 [INFO] [stdout] | [INFO] [stdout] 141 | let mut Hash256 : H256 = ring::digest::digest(&ring::digest::SHA256, &self.0).into(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `hash256` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Hash160` should have a snake case name [INFO] [stdout] --> src/crypto/hash.rs:142:17 [INFO] [stdout] | [INFO] [stdout] 142 | let mut Hash160 = [0; 20]; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `hash160` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `leafNodes` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 34 | let mut leafNodes = Vec::with_capacity(length); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `leaf_nodes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `childrenNodes` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:44:17 [INFO] [stdout] | [INFO] [stdout] 44 | let mut childrenNodes = leafNodes.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `children_nodes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `curLength` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:45:17 [INFO] [stdout] | [INFO] [stdout] 45 | let mut curLength = childrenNodes.len(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `cur_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `TreeNodes` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:48:21 [INFO] [stdout] | [INFO] [stdout] 48 | let mut TreeNodes:Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `tree_nodes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `leftNode` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:58:21 [INFO] [stdout] | [INFO] [stdout] 58 | let leftNode = childrenNodes.remove(0); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `left_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `leftNodeVal` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:59:21 [INFO] [stdout] | [INFO] [stdout] 59 | let leftNodeVal = (leftNode.val).as_ref(); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `left_node_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rightNode` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:61:21 [INFO] [stdout] | [INFO] [stdout] 61 | let rightNode = childrenNodes.remove(0); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `right_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rightNodeVal` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:62:21 [INFO] [stdout] | [INFO] [stdout] 62 | let rightNodeVal = (rightNode.val).as_ref(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `right_node_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `parentNodeVal` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:64:21 [INFO] [stdout] | [INFO] [stdout] 64 | let parentNodeVal = ::from(digest::digest(&digest::SHA256, &([&leftNodeVal[..], &rightNodeVal[..]].concat()))); [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `parent_node_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `parentNode` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:66:21 [INFO] [stdout] | [INFO] [stdout] 66 | let parentNode = TreeNode{val: parentNodeVal ,left:Some(Box::new(leftNode)),right:Some(Box::new(rightNode))}; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `parent_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `curNode` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:88:17 [INFO] [stdout] | [INFO] [stdout] 88 | let mut curNode = self.root.as_ref().unwrap(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `cur_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proofVec` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:89:17 [INFO] [stdout] | [INFO] [stdout] 89 | let mut proofVec:Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `proof_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `realIndex` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | let realIndex = (index + 1) as i32; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `real_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `realHeight` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | let realHeight = self.height; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `real_height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `oriCenter` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:94:17 [INFO] [stdout] | [INFO] [stdout] 94 | let mut oriCenter = center; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `ori_center` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `leftNode` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:97:17 [INFO] [stdout] | [INFO] [stdout] 97 | let leftNode = curNode.left.as_ref(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `left_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rightNode` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:98:17 [INFO] [stdout] | [INFO] [stdout] 98 | let rightNode = curNode.right.as_ref(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `right_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getHeight` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:119:8 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn getHeight(mut length:usize) -> usize { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `get_height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `proofVec` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:137:13 [INFO] [stdout] | [INFO] [stdout] 137 | let mut proofVec = Vec::from(proof.clone()); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `proof_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `realIndex` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:138:13 [INFO] [stdout] | [INFO] [stdout] 138 | let mut realIndex = index + 1; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `real_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `parentVal` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:145:17 [INFO] [stdout] | [INFO] [stdout] 145 | let parentVal = ::from(digest::digest(&digest::SHA256, &([&left[..], &right[..]].concat()))); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `parent_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `parentVal` should have a snake case name [INFO] [stdout] --> src/crypto/merkle.rs:154:17 [INFO] [stdout] | [INFO] [stdout] 154 | let parentVal = ::from(digest::digest(&digest::SHA256, &([&left[..], &right[..]].concat()))); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `parent_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `stateWitness` should have a snake case name [INFO] [stdout] --> src/miner.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | stateWitness: Arc>, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `ifArchival` should have a snake case name [INFO] [stdout] --> src/miner.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | ifArchival: bool, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `if_archival` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/miner.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | stateWitness: &Arc>, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ifArchival` should have a snake case name [INFO] [stdout] --> src/miner.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | ifArchival: bool, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `if_archival` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `signedTransaction` should have a snake case name [INFO] [stdout] --> src/miner.rs:189:25 [INFO] [stdout] | [INFO] [stdout] 189 | let mut signedTransaction = Vec::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `signed_transaction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/miner.rs:194:25 [INFO] [stdout] | [INFO] [stdout] 194 | let mut stateWitness = self.stateWitness.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `MerkleTree` should have a snake case name [INFO] [stdout] --> src/miner.rs:226:29 [INFO] [stdout] | [INFO] [stdout] 226 | let mut MerkleTree = MerkleTree::new(&signedTransaction); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `merkle_tree` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newContent` should have a snake case name [INFO] [stdout] --> src/miner.rs:228:25 [INFO] [stdout] | [INFO] [stdout] 228 | let newContent = Content{ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `new_content` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newHeader` should have a snake case name [INFO] [stdout] --> src/miner.rs:232:25 [INFO] [stdout] | [INFO] [stdout] 232 | let newHeader = Header{ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `new_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newBlock` should have a snake case name [INFO] [stdout] --> src/miner.rs:240:25 [INFO] [stdout] | [INFO] [stdout] 240 | let newBlock = Block{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `new_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/miner.rs:252:33 [INFO] [stdout] | [INFO] [stdout] 252 | let mut stateWitness = self.stateWitness.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `HashMap` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub HashMap: HashMap>, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `hash_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getOrphanBlocks` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn getOrphanBlocks(&self, Hash:&H256) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_orphan_blocks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Hash` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:42:35 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn getOrphanBlocks(&self, Hash:&H256) -> Vec { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Blocks` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:43:17 [INFO] [stdout] | [INFO] [stdout] 43 | let mut Blocks = Vec::::new(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `blocks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Parent` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:50:30 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn insert(&mut self, Parent:H256, Blocks:Vec) { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `parent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Blocks` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:50:43 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn insert(&mut self, Parent:H256, Blocks:Vec) { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `blocks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Hash` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:54:30 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn remove(&mut self, Hash:&H256) { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isParentIn` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn isParentIn(&self, Hash:&H256) -> bool { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `is_parent_in` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Hash` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:60:30 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn isParentIn(&self, Hash:&H256) -> bool { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `stateWitness` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 74 | stateWitness: Arc>, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `ifArchival` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | ifArchival: bool, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `if_archival` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 88 | stateWitness: &Arc>, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ifArchival` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | ifArchival: bool [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `if_archival` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `notContainedHashes` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:145:29 [INFO] [stdout] | [INFO] [stdout] 145 | let mut notContainedHashes = Vec::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `not_contained_hashes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `notContainedBlocks` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:165:29 [INFO] [stdout] | [INFO] [stdout] 165 | let mut notContainedBlocks = Vec::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `not_contained_blocks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newlyOrphanParent` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:189:29 [INFO] [stdout] | [INFO] [stdout] 189 | let mut newlyOrphanParent = Vec::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `newly_orphan_parent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newlyProcessedBlockHashes` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:190:29 [INFO] [stdout] | [INFO] [stdout] 190 | let mut newlyProcessedBlockHashes = Vec::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `newly_processed_block_hashes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:207:45 [INFO] [stdout] | [INFO] [stdout] 207 | ... let mut stateWitness = self.stateWitness.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:248:53 [INFO] [stdout] | [INFO] [stdout] 248 | ... let mut stateWitness = self.stateWitness.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:266:49 [INFO] [stdout] | [INFO] [stdout] 266 | ... let A = accumulator.accumulate(); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newlyOrphans` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:293:45 [INFO] [stdout] | [INFO] [stdout] 293 | ... let mut newlyOrphans = Vec::::new(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `newly_orphans` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:314:41 [INFO] [stdout] | [INFO] [stdout] 314 | ... let mut stateWitness = self.stateWitness.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:340:49 [INFO] [stdout] | [INFO] [stdout] 340 | ... let mut stateWitness = self.stateWitness.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:354:45 [INFO] [stdout] | [INFO] [stdout] 354 | ... let A = accumulator.accumulate(); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `notContainedHashes` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:390:29 [INFO] [stdout] | [INFO] [stdout] 390 | let mut notContainedHashes = Vec::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `not_contained_hashes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `notContainedTransactions` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:408:29 [INFO] [stdout] | [INFO] [stdout] 408 | let mut notContainedTransactions = Vec::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `not_contained_transactions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Transactions` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:425:39 [INFO] [stdout] | [INFO] [stdout] 425 | Message::Transactions(Transactions) => { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `transactions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:429:29 [INFO] [stdout] | [INFO] [stdout] 429 | let mut stateWitness = self.stateWitness.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Transactions` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:430:29 [INFO] [stdout] | [INFO] [stdout] 430 | let mut Transactions = Transactions.clone(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `transactions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `addedTransactionHashes` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:431:29 [INFO] [stdout] | [INFO] [stdout] 431 | let mut addedTransactionHashes = Vec::::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `added_transaction_hashes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Transaction` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:433:25 [INFO] [stdout] | [INFO] [stdout] 433 | for Transaction in Transactions.iter(){ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `transaction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newState` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:454:43 [INFO] [stdout] | [INFO] [stdout] 454 | Message::NewStateWitness( newState, newProof) => { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `new_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newProof` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:454:53 [INFO] [stdout] | [INFO] [stdout] 454 | Message::NewStateWitness( newState, newProof) => { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `new_proof` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/network/worker.rs:457:33 [INFO] [stdout] | [INFO] [stdout] 457 | let mut stateWitness = self.stateWitness.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `prevTransaction` should have a snake case name [INFO] [stdout] --> src/transaction.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub prevTransaction: H256, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `prev_transaction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `preOutputIndex` should have a snake case name [INFO] [stdout] --> src/transaction.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | pub preOutputIndex: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `pre_output_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `recpAddress` should have a snake case name [INFO] [stdout] --> src/transaction.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | pub recpAddress: H160, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `recp_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Input` should have a snake case name [INFO] [stdout] --> src/transaction.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | pub Input: Vec, [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Output` should have a snake case name [INFO] [stdout] --> src/transaction.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | pub Output: Vec, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `publicKey` should have a snake case name [INFO] [stdout] --> src/transaction.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | pub publicKey: Vec, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `public_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `publicKey` should have a snake case name [INFO] [stdout] --> src/transaction.rs:83:17 [INFO] [stdout] | [INFO] [stdout] 83 | let mut publicKey = public_key.as_ref().to_vec(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `public_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `verifySignedTransaction` should have a snake case name [INFO] [stdout] --> src/transaction.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn verifySignedTransaction(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `verify_signed_transaction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Transactions` should have a snake case name [INFO] [stdout] --> src/transaction.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | pub Transactions: HashMap, // hash <-> transaction(signed) [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `transactions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `updateMempool` should have a snake case name [INFO] [stdout] --> src/transaction.rs:145:12 [INFO] [stdout] | [INFO] [stdout] 145 | pub fn updateMempool(&mut self, SignedTransaction: &Vec){ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `update_mempool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `SignedTransaction` should have a snake case name [INFO] [stdout] --> src/transaction.rs:145:37 [INFO] [stdout] | [INFO] [stdout] 145 | pub fn updateMempool(&mut self, SignedTransaction: &Vec){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `signed_transaction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `signedTransaction` should have a snake case name [INFO] [stdout] --> src/transaction.rs:146:13 [INFO] [stdout] | [INFO] [stdout] 146 | for signedTransaction in SignedTransaction{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `signed_transaction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `stateWitness` should have a snake case name [INFO] [stdout] --> src/transaction.rs:169:5 [INFO] [stdout] | [INFO] [stdout] 169 | stateWitness: Arc>, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `ifArchival` should have a snake case name [INFO] [stdout] --> src/transaction.rs:178:5 [INFO] [stdout] | [INFO] [stdout] 178 | ifArchival: bool, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `if_archival` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/transaction.rs:191:5 [INFO] [stdout] | [INFO] [stdout] 191 | stateWitness: &Arc>, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ifArchival` should have a snake case name [INFO] [stdout] --> src/transaction.rs:197:5 [INFO] [stdout] | [INFO] [stdout] 197 | ifArchival: bool, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `if_archival` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `readADD` should have a snake case name [INFO] [stdout] --> src/transaction.rs:261:17 [INFO] [stdout] | [INFO] [stdout] 261 | let mut readADD: bool = false; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `read_add` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 16s [INFO] [stdout] warning: variable `ICO` should have a snake case name [INFO] [stdout] --> src/transaction.rs:262:17 [INFO] [stdout] | [INFO] [stdout] 262 | let mut ICO: bool = false; [INFO] [stdout] | ^^^ help: convert the identifier to snake case (notice the capitalization): `ico` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/transaction.rs:330:25 [INFO] [stdout] | [INFO] [stdout] 330 | let mut stateWitness = self.stateWitness.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/transaction.rs:341:21 [INFO] [stdout] | [INFO] [stdout] 341 | let A = accumulator.accumulate(); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `myStateWitness` should have a snake case name [INFO] [stdout] --> src/transaction.rs:373:21 [INFO] [stdout] | [INFO] [stdout] 373 | let mut myStateWitness = Vec::<(H256, u32, u32, u128)>::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `my_state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/transaction.rs:376:25 [INFO] [stdout] | [INFO] [stdout] 376 | let mut stateWitness = self.stateWitness.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Iteration` should have a snake case name [INFO] [stdout] --> src/transaction.rs:407:21 [INFO] [stdout] | [INFO] [stdout] 407 | for Iteration in myStateWitness.iter() { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `iteration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `SignedTransaction` should have a snake case name [INFO] [stdout] --> src/transaction.rs:446:25 [INFO] [stdout] | [INFO] [stdout] 446 | let SignedTransaction = SignedTransaction::new(&transaction, &signature, &self.key_pair.public_key()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `signed_transaction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stateWitness` should have a snake case name [INFO] [stdout] --> src/transaction.rs:451:29 [INFO] [stdout] | [INFO] [stdout] 451 | let mut stateWitness = self.stateWitness.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `state_witness` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `txHash` should have a snake case name [INFO] [stdout] --> src/transaction.rs:472:33 [INFO] [stdout] | [INFO] [stdout] 472 | let mut txHash = Vec::::new(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `tx_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `preHash` should have a snake case name [INFO] [stdout] --> src/transaction.rs:503:29 [INFO] [stdout] | [INFO] [stdout] 503 | pub fn generate_transaction(preHash:&Vec, preIndex:&Vec, witness: &Vec, outValue:&Vec, recpAddress:&Vec) -... [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `pre_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `preIndex` should have a snake case name [INFO] [stdout] --> src/transaction.rs:503:49 [INFO] [stdout] | [INFO] [stdout] 503 | pub fn generate_transaction(preHash:&Vec, preIndex:&Vec, witness: &Vec, outValue:&Vec, recpAddress:&Vec) -... [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `pre_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `outValue` should have a snake case name [INFO] [stdout] --> src/transaction.rs:503:93 [INFO] [stdout] | [INFO] [stdout] 503 | ...&Vec, witness: &Vec, outValue:&Vec, recpAddress:&Vec) -> Transaction { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `out_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `recpAddress` should have a snake case name [INFO] [stdout] --> src/transaction.rs:503:113 [INFO] [stdout] | [INFO] [stdout] 503 | ...c, outValue:&Vec, recpAddress:&Vec) -> Transaction { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `recp_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `inputVec` should have a snake case name [INFO] [stdout] --> src/transaction.rs:505:13 [INFO] [stdout] | [INFO] [stdout] 505 | let mut inputVec = Vec::::new(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `input_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `outputVec` should have a snake case name [INFO] [stdout] --> src/transaction.rs:506:13 [INFO] [stdout] | [INFO] [stdout] 506 | let mut outputVec = Vec::::new(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `output_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `States` should have a snake case name [INFO] [stdout] --> src/transaction.rs:552:9 [INFO] [stdout] | [INFO] [stdout] 552 | pub States: HashMap<(H256, u32),(f32, H160, u32, u128)>, // (prev TX Hash, prev Output Index) <-> (Output Value, Recipient Addr, Pri... [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `states` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `AccumulatorProof` should have a snake case name [INFO] [stdout] --> src/transaction.rs:553:9 [INFO] [stdout] | [INFO] [stdout] 553 | pub AccumulatorProof: HashMap, // Block Hash <-> Accumulator [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `accumulator_proof` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `ifNotDoubleSpent` should have a snake case name [INFO] [stdout] --> src/transaction.rs:566:12 [INFO] [stdout] | [INFO] [stdout] 566 | pub fn ifNotDoubleSpent (&self, Input: &Vec, Block_Hash: &H256) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `if_not_double_spent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Input` should have a snake case name [INFO] [stdout] --> src/transaction.rs:566:37 [INFO] [stdout] | [INFO] [stdout] 566 | pub fn ifNotDoubleSpent (&self, Input: &Vec, Block_Hash: &H256) -> bool { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Block_Hash` should have a snake case name [INFO] [stdout] --> src/transaction.rs:566:57 [INFO] [stdout] | [INFO] [stdout] 566 | pub fn ifNotDoubleSpent (&self, Input: &Vec, Block_Hash: &H256) -> bool { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `block_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `AccumulatorProof` should have a snake case name [INFO] [stdout] --> src/transaction.rs:573:21 [INFO] [stdout] | [INFO] [stdout] 573 | let AccumulatorProof = self.AccumulatorProof.get(&Block_Hash).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `accumulator_proof` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `addStates` should have a snake case name [INFO] [stdout] --> src/transaction.rs:588:12 [INFO] [stdout] | [INFO] [stdout] 588 | pub fn addStates(&mut self, transaction_hash: H256, output_index: u32, output_value: f32, recp_address: H160, prime_number: u32, witn... [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `add_states` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `deleteStates` should have a snake case name [INFO] [stdout] --> src/transaction.rs:594:12 [INFO] [stdout] | [INFO] [stdout] 594 | pub fn deleteStates(&mut self, transaction_hash: H256, output_index: u32) { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `delete_states` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `updateAccumulator` should have a snake case name [INFO] [stdout] --> src/transaction.rs:600:12 [INFO] [stdout] | [INFO] [stdout] 600 | pub fn updateAccumulator(&mut self, Block_Hash: H256, AccumulatorProof: u128) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `update_accumulator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Block_Hash` should have a snake case name [INFO] [stdout] --> src/transaction.rs:600:41 [INFO] [stdout] | [INFO] [stdout] 600 | pub fn updateAccumulator(&mut self, Block_Hash: H256, AccumulatorProof: u128) { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `block_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `AccumulatorProof` should have a snake case name [INFO] [stdout] --> src/transaction.rs:600:59 [INFO] [stdout] | [INFO] [stdout] 600 | pub fn updateAccumulator(&mut self, Block_Hash: H256, AccumulatorProof: u128) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `accumulator_proof` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getAllStates` should have a snake case name [INFO] [stdout] --> src/transaction.rs:606:12 [INFO] [stdout] | [INFO] [stdout] 606 | pub fn getAllStates(&self) -> Vec<(H256, u32, f32, H160, u32, u128)>{ [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `get_all_states` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `States` should have a snake case name [INFO] [stdout] --> src/transaction.rs:608:13 [INFO] [stdout] | [INFO] [stdout] 608 | let States = self.States.clone(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `states` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getNewProof` should have a snake case name [INFO] [stdout] --> src/transaction.rs:615:12 [INFO] [stdout] | [INFO] [stdout] 615 | pub fn getNewProof(&self, block_hash: &H256) -> Vec<(H256,u128)> { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `get_new_proof` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `AccumulatorProof` should have a snake case name [INFO] [stdout] --> src/transaction.rs:617:13 [INFO] [stdout] | [INFO] [stdout] 617 | let AccumulatorProof = self.AccumulatorProof.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `accumulator_proof` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rand_addr_H160` should have a snake case name [INFO] [stdout] --> src/transaction.rs:633:13 [INFO] [stdout] | [INFO] [stdout] 633 | let mut rand_addr_H160 = ::from(digest::digest(&digest::SHA256,"442cabd17e40d95ac0932d977c0759397b9db4d93c4d62c368b95419db574db... [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `rand_addr_h160` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `SignedTransaction` should have a snake case name [INFO] [stdout] --> src/transaction.rs:647:9 [INFO] [stdout] | [INFO] [stdout] 647 | let SignedTransaction = SignedTransaction::new(&transaction,&signature,&key.public_key()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `signed_transaction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 250 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "4770f16bc1ce88b663cc83ff63a58b50a7e7386cc2d80d8cff7eed9849d3a032", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4770f16bc1ce88b663cc83ff63a58b50a7e7386cc2d80d8cff7eed9849d3a032", kill_on_drop: false }` [INFO] [stdout] 4770f16bc1ce88b663cc83ff63a58b50a7e7386cc2d80d8cff7eed9849d3a032