[INFO] cloning repository https://github.com/raagan-u/wallet_rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/raagan-u/wallet_rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fraagan-u%2Fwallet_rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fraagan-u%2Fwallet_rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] dd24399cb651a94cd9d0d7b4ab4cec3d68392c8d [INFO] checking raagan-u/wallet_rs against try#c659ee110de67e82444e4b6c8407c1a9af9c2cf6 for pr-145608-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fraagan-u%2Fwallet_rs" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/raagan-u/wallet_rs [INFO] finished tweaking git repo https://github.com/raagan-u/wallet_rs [INFO] tweaked toml for git repo https://github.com/raagan-u/wallet_rs written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/raagan-u/wallet_rs on toolchain c659ee110de67e82444e4b6c8407c1a9af9c2cf6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/raagan-u/wallet_rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 40faf6348739d904ed49de1d28a20bfed6efb7895c9fdf5dd743aa104326664a [INFO] running `Command { std: "docker" "start" "-a" "40faf6348739d904ed49de1d28a20bfed6efb7895c9fdf5dd743aa104326664a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "40faf6348739d904ed49de1d28a20bfed6efb7895c9fdf5dd743aa104326664a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "40faf6348739d904ed49de1d28a20bfed6efb7895c9fdf5dd743aa104326664a", kill_on_drop: false }` [INFO] [stdout] 40faf6348739d904ed49de1d28a20bfed6efb7895c9fdf5dd743aa104326664a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 47c8b621a5c50b8c02124cabd241d5f707d94096f6c37beaa266d64f4f875e69 [INFO] running `Command { std: "docker" "start" "-a" "47c8b621a5c50b8c02124cabd241d5f707d94096f6c37beaa266d64f4f875e69", kill_on_drop: false }` [INFO] [stderr] Checking smallvec v1.15.0 [INFO] [stderr] Checking bytes v1.10.1 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling cc v1.2.18 [INFO] [stderr] Compiling icu_locid_transform_data v1.5.1 [INFO] [stderr] Checking litemap v0.7.5 [INFO] [stderr] Compiling icu_properties_data v1.5.1 [INFO] [stderr] Checking hashbrown v0.15.2 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Checking socket2 v0.5.9 [INFO] [stderr] Checking signal-hook-registry v1.4.5 [INFO] [stderr] Checking equivalent v1.0.2 [INFO] [stderr] Compiling icu_normalizer_data v1.5.1 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Compiling openssl v0.10.72 [INFO] [stderr] Compiling getrandom v0.3.2 [INFO] [stderr] Compiling zerocopy v0.8.24 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking bitflags v2.9.0 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking http v1.3.1 [INFO] [stderr] Checking tracing-core v0.1.33 [INFO] [stderr] Compiling bitcoin-internals v0.3.0 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Checking openssl-probe v0.1.6 [INFO] [stderr] Checking bitcoin_hashes v0.14.0 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking sync_wrapper v1.0.2 [INFO] [stderr] Checking rustls-pki-types v1.11.0 [INFO] [stderr] Compiling anyhow v1.0.99 [INFO] [stderr] Compiling bitcoin v0.32.5 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking colored v3.0.0 [INFO] [stderr] Checking indexmap v2.9.0 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking ipnet v2.11.0 [INFO] [stderr] Checking similar v2.7.0 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Checking bitcoin-units v0.1.2 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking rustls-pemfile v2.2.0 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Checking base58ck v0.1.0 [INFO] [stderr] Compiling openssl-sys v0.9.107 [INFO] [stderr] Compiling secp256k1-sys v0.10.1 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking rand v0.9.0 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Checking tokio v1.44.2 [INFO] [stderr] Checking secp256k1 v0.29.1 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking yoke v0.7.5 [INFO] [stderr] Checking thiserror v2.0.12 [INFO] [stderr] Checking zerovec v0.10.4 [INFO] [stderr] Checking tinystr v0.7.6 [INFO] [stderr] Checking icu_collections v1.5.0 [INFO] [stderr] Checking icu_locid v1.5.0 [INFO] [stderr] Checking icu_provider v1.5.0 [INFO] [stderr] Checking icu_locid_transform v1.5.0 [INFO] [stderr] Checking serde v1.0.219 [INFO] [stderr] Checking icu_properties v1.5.1 [INFO] [stderr] Checking tokio-util v0.7.14 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking serde_json v1.0.140 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking h2 v0.4.8 [INFO] [stderr] Checking icu_normalizer v1.5.0 [INFO] [stderr] Checking idna_adapter v1.2.0 [INFO] [stderr] Checking assert-json-diff v2.0.2 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking hyper v1.6.0 [INFO] [stderr] Checking hyper-util v0.1.11 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking mockito v1.7.0 [INFO] [stderr] Checking reqwest v0.12.15 [INFO] [stderr] Checking wallet_rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Txid` [INFO] [stdout] --> src/bitcoin_wallet/htlc_wallet.rs:13:123 [INFO] [stdout] | [INFO] [stdout] 13 | Address, Amount, CompressedPublicKey, OutPoint, PrivateKey, Script, ScriptBuf, Sequence, TapLeafHash, TapSighashType, Txid, Witness [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WrappedWitness` [INFO] [stdout] --> src/bitcoin_wallet/htlc_wallet.rs:16:48 [INFO] [stdout] | [INFO] [stdout] 16 | use crate::bitcoin_wallet::htlc::{BitcoinHTLC, WrappedWitness}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Txid` [INFO] [stdout] --> src/bitcoin_wallet/htlc_wallet.rs:13:123 [INFO] [stdout] | [INFO] [stdout] 13 | Address, Amount, CompressedPublicKey, OutPoint, PrivateKey, Script, ScriptBuf, Sequence, TapLeafHash, TapSighashType, Txid, Witness [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WrappedWitness` [INFO] [stdout] --> src/bitcoin_wallet/htlc_wallet.rs:16:48 [INFO] [stdout] | [INFO] [stdout] 16 | use crate::bitcoin_wallet::htlc::{BitcoinHTLC, WrappedWitness}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `outputs` [INFO] [stdout] --> src/bitcoin_wallet/simple.rs:48:33 [INFO] [stdout] | [INFO] [stdout] 48 | fn build_transaction(&self, outputs: Vec) -> Result { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_outputs` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `address` [INFO] [stdout] --> src/bitcoin_wallet/simple.rs:52:29 [INFO] [stdout] | [INFO] [stdout] 52 | fn sign_and_send(&self, address: &str, amount: f64) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> src/bitcoin_wallet/simple.rs:52:44 [INFO] [stdout] | [INFO] [stdout] 52 | fn sign_and_send(&self, address: &str, amount: f64) -> Result<(), String> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `outputs` [INFO] [stdout] --> src/bitcoin_wallet/simple.rs:48:33 [INFO] [stdout] | [INFO] [stdout] 48 | fn build_transaction(&self, outputs: Vec) -> Result { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_outputs` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `address` [INFO] [stdout] --> src/bitcoin_wallet/simple.rs:52:29 [INFO] [stdout] | [INFO] [stdout] 52 | fn sign_and_send(&self, address: &str, amount: f64) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> src/bitcoin_wallet/simple.rs:52:44 [INFO] [stdout] | [INFO] [stdout] 52 | fn sign_and_send(&self, address: &str, amount: f64) -> Result<(), String> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Wallet` is never used [INFO] [stdout] --> src/bitcoin_wallet/mod.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait Wallet { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SimpleWallet` is never constructed [INFO] [stdout] --> src/bitcoin_wallet/simple.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct SimpleWallet { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bitcoin_wallet/simple.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl SimpleWallet { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 15 | pub fn new(priv_key_str: &str, network: &str, indexer_url: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HTLCWallet` is never constructed [INFO] [stdout] --> src/bitcoin_wallet/htlc_wallet.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct HTLCWallet { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/bitcoin_wallet/htlc_wallet.rs:29:11 [INFO] [stdout] | [INFO] [stdout] 27 | impl HTLCWallet { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 28 | // Dust threshold constants (in satoshis) [INFO] [stdout] 29 | const P2WPKH_DUST_THRESHOLD: u64 = 294; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 30 | const P2TR_DUST_THRESHOLD: u64 = 330; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 31 | const DEFAULT_DUST_THRESHOLD: u64 = 546; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 32 | [INFO] [stdout] 33 | pub fn new(private_key_str: &str, network: Network) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn get_address(&self) -> Address { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn get_public_key(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn get_balance(&self) -> Amount { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn add_utxo(&mut self, outpoint: OutPoint, txout: TxOut) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn remove_utxo(&mut self, outpoint: &OutPoint) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | fn get_dust_threshold(script_pubkey: &ScriptBuf) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | fn is_dust(value: u64, script_pubkey: &ScriptBuf) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | fn calculate_fee(inputs: usize, outputs: usize, fee_rate: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn create_htlc_initiation( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 196 | pub fn create_htlc_redemption( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 282 | pub fn create_htlc_refund( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 366 | pub fn generate_preimage(&self) -> [u8; 32] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 375 | pub fn hash_preimage(preimage: &[u8; 32]) -> [u8; 32] { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 380 | pub fn create_htlc_as_initiator( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 396 | pub fn create_htlc_as_redeemer( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `sig`, `inititor_sig`, `secret`, `script`, and `cb_bytes` are never read [INFO] [stdout] --> src/bitcoin_wallet/htlc.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct WrappedWitness { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 33 | sig: Vec, [INFO] [stdout] | ^^^ [INFO] [stdout] 34 | inititor_sig: Option>, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 35 | secret: Option>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 36 | script: ScriptBuf, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 37 | cb_bytes: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WrappedWitness` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/bitcoin_wallet/htlc.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl WrappedWitness { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn sig(&self) -> &Vec { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn inititor_sig(&self) -> Option<&Vec> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn secret(&self) -> Option<&Vec> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn script(&self) -> &ScriptBuf { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn script_bytes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn cb_bytes(&self) -> &Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn bytes_stack(&self) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `network` is never read [INFO] [stdout] --> src/bitcoin_wallet/htlc.rs:107:5 [INFO] [stdout] | [INFO] [stdout] 102 | pub struct BitcoinHTLC { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 107 | network: Network, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `address`, `redeem`, and `timelock` are never used [INFO] [stdout] --> src/bitcoin_wallet/htlc.rs:111:12 [INFO] [stdout] | [INFO] [stdout] 110 | impl BitcoinHTLC { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 111 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | pub fn address(&self) -> Result
{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | pub fn redeem(&self, secret: &str) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 259 | pub fn timelock(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Redeem` is never constructed [INFO] [stdout] --> src/bitcoin_wallet/htlc.rs:265:5 [INFO] [stdout] | [INFO] [stdout] 264 | pub enum Leaf { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] 265 | Redeem, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IndexerClient` is never constructed [INFO] [stdout] --> src/indexer/indexer.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct IndexerClient { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IndexerError` is never used [INFO] [stdout] --> src/indexer/indexer.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum IndexerError { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_balance`, `get_utxos`, `get_utxos_for_amount`, and `get_tx` are never used [INFO] [stdout] --> src/indexer/indexer.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl IndexerClient { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 25 | pub fn new(url: &str) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub async fn get_balance(&self, address: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub async fn get_utxos(&self, address: &str) -> Result, IndexerError> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub async fn get_utxos_for_amount( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub async fn get_tx(&self, txid: &str) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UTXO` is never constructed [INFO] [stdout] --> src/types.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct UTXO { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UTXOStatus` is never constructed [INFO] [stdout] --> src/types.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct UTXOStatus { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `build_transaction` and `sign_and_send` are never used [INFO] [stdout] --> src/bitcoin_wallet/mod.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait Wallet { [INFO] [stdout] | ------ methods in this trait [INFO] [stdout] ... [INFO] [stdout] 10 | fn build_transaction(&self, outputs: Vec) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 11 | fn sign_and_send(&self, address: &str, amount: f64) -> Result<(), String>; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `private_key` is never read [INFO] [stdout] --> src/bitcoin_wallet/simple.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct SimpleWallet { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 8 | private_key: PrivateKey, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HTLCWallet` is never constructed [INFO] [stdout] --> src/bitcoin_wallet/htlc_wallet.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct HTLCWallet { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/bitcoin_wallet/htlc_wallet.rs:29:11 [INFO] [stdout] | [INFO] [stdout] 27 | impl HTLCWallet { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 28 | // Dust threshold constants (in satoshis) [INFO] [stdout] 29 | const P2WPKH_DUST_THRESHOLD: u64 = 294; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 30 | const P2TR_DUST_THRESHOLD: u64 = 330; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 31 | const DEFAULT_DUST_THRESHOLD: u64 = 546; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 32 | [INFO] [stdout] 33 | pub fn new(private_key_str: &str, network: Network) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn get_address(&self) -> Address { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn get_public_key(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn get_balance(&self) -> Amount { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn add_utxo(&mut self, outpoint: OutPoint, txout: TxOut) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn remove_utxo(&mut self, outpoint: &OutPoint) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | fn get_dust_threshold(script_pubkey: &ScriptBuf) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | fn is_dust(value: u64, script_pubkey: &ScriptBuf) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | fn calculate_fee(inputs: usize, outputs: usize, fee_rate: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn create_htlc_initiation( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 196 | pub fn create_htlc_redemption( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 282 | pub fn create_htlc_refund( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 366 | pub fn generate_preimage(&self) -> [u8; 32] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 375 | pub fn hash_preimage(preimage: &[u8; 32]) -> [u8; 32] { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 380 | pub fn create_htlc_as_initiator( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 396 | pub fn create_htlc_as_redeemer( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `script` and `bytes_stack` are never used [INFO] [stdout] --> src/bitcoin_wallet/htlc.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl WrappedWitness { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn script(&self) -> &ScriptBuf { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn bytes_stack(&self) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `timelock` is never used [INFO] [stdout] --> src/bitcoin_wallet/htlc.rs:259:12 [INFO] [stdout] | [INFO] [stdout] 110 | impl BitcoinHTLC { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 259 | pub fn timelock(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `UtxoError` is never constructed [INFO] [stdout] --> src/indexer/indexer.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum IndexerError { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 21 | UtxoError(String), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IndexerError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_utxos_for_amount` and `get_tx` are never used [INFO] [stdout] --> src/indexer/indexer.rs:52:18 [INFO] [stdout] | [INFO] [stdout] 24 | impl IndexerClient { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 52 | pub async fn get_utxos_for_amount( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub async fn get_tx(&self, txid: &str) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 42.65s [INFO] running `Command { std: "docker" "inspect" "47c8b621a5c50b8c02124cabd241d5f707d94096f6c37beaa266d64f4f875e69", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "47c8b621a5c50b8c02124cabd241d5f707d94096f6c37beaa266d64f4f875e69", kill_on_drop: false }` [INFO] [stdout] 47c8b621a5c50b8c02124cabd241d5f707d94096f6c37beaa266d64f4f875e69