Skip to content

Commit

Permalink
chore(electrum, esplora): remove enable_rbf()
Browse files Browse the repository at this point in the history
  • Loading branch information
luisschwab committed Sep 29, 2024
1 parent 1c9a28d commit f6fa15e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions example-crates/example_wallet_electrum/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,7 @@ fn main() -> Result<(), anyhow::Error> {
}

let mut tx_builder = wallet.build_tx();
tx_builder
.add_recipient(address.script_pubkey(), SEND_AMOUNT)
.enable_rbf();
tx_builder.add_recipient(address.script_pubkey(), SEND_AMOUNT);

let mut psbt = tx_builder.finish()?;
let finalized = wallet.sign(&mut psbt, SignOptions::default())?;
Expand Down
4 changes: 1 addition & 3 deletions example-crates/example_wallet_esplora_async/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,7 @@ async fn main() -> Result<(), anyhow::Error> {
}

let mut tx_builder = wallet.build_tx();
tx_builder
.add_recipient(address.script_pubkey(), SEND_AMOUNT)
.enable_rbf();
tx_builder.add_recipient(address.script_pubkey(), SEND_AMOUNT);

let mut psbt = tx_builder.finish()?;
let finalized = wallet.sign(&mut psbt, SignOptions::default())?;
Expand Down
4 changes: 1 addition & 3 deletions example-crates/example_wallet_esplora_blocking/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,7 @@ fn main() -> Result<(), anyhow::Error> {
}

let mut tx_builder = wallet.build_tx();
tx_builder
.add_recipient(address.script_pubkey(), SEND_AMOUNT)
.enable_rbf();
tx_builder.add_recipient(address.script_pubkey(), SEND_AMOUNT);

let mut psbt = tx_builder.finish()?;
let finalized = wallet.sign(&mut psbt, SignOptions::default())?;
Expand Down

0 comments on commit f6fa15e

Please sign in to comment.