From d1a0c62edb89f8636b046d29b92b2f7e1c53cebc Mon Sep 17 00:00:00 2001 From: Gregory Hill Date: Wed, 12 Apr 2023 15:17:25 +0100 Subject: [PATCH] chore: improve doc comments Signed-off-by: Gregory Hill --- Cargo.lock | 10 +++++----- bitcoin/src/electrs/mod.rs | 3 +++ bitcoin/src/light/wallet.rs | 2 +- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 05db2d8d3..6621160d6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -15970,12 +15970,12 @@ dependencies = [ "pkg-config", ] -[[patch.unused]] -name = "sp-serializer" -version = "4.0.0-dev" -source = "git+https://github.com/paritytech//substrate?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" - [[patch.unused]] name = "orml-xcm" version = "0.4.1-dev" source = "git+https://github.com/open-web3-stack//open-runtime-module-library?rev=24f0a8b6e04e1078f70d0437fb816337cdf4f64c#24f0a8b6e04e1078f70d0437fb816337cdf4f64c" + +[[patch.unused]] +name = "sp-serializer" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech//substrate?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" diff --git a/bitcoin/src/electrs/mod.rs b/bitcoin/src/electrs/mod.rs index db364a59c..8acfd707e 100644 --- a/bitcoin/src/electrs/mod.rs +++ b/bitcoin/src/electrs/mod.rs @@ -246,6 +246,9 @@ impl ElectrsClient { Ok(txs) } + /// Returns the *largest* payment to the `address` which is + /// greater than or equal to the specified `amount` and contains + /// an `OP_RETURN` output with `data`. pub(crate) async fn get_tx_for_op_return( &self, address: Address, diff --git a/bitcoin/src/light/wallet.rs b/bitcoin/src/light/wallet.rs index a5d0a0597..d02a5ef0f 100644 --- a/bitcoin/src/light/wallet.rs +++ b/bitcoin/src/light/wallet.rs @@ -353,7 +353,7 @@ impl Wallet { log::info!("Found utxo: {}", utxo.outpoint.txid); if prev_txid.contains(&utxo.outpoint.txid) { - // skip if trying to spend previous tx (RBF) + // skip if trying to spend from the tx we are replacing continue; }