Skip to content

Commit

Permalink
chore: improve doc comments
Browse files Browse the repository at this point in the history
Signed-off-by: Gregory Hill <[email protected]>
  • Loading branch information
gregdhill committed Apr 12, 2023
1 parent 114791e commit 5bd1968
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions bitcoin/src/electrs/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions bitcoin/src/light/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ impl BitcoinCoreApi for BitcoinLight {
}
});

// clear the witnesses for fee estimation
existing_transaction
.input
.iter_mut()
Expand Down
2 changes: 1 addition & 1 deletion bitcoin/src/light/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 5bd1968

Please sign in to comment.