From: Matt Corallo <649246+TheBlueMatt@users.noreply.github.com> Date: Tue, 17 Aug 2021 01:33:01 +0000 (+0000) Subject: Allow "rejecting replacement" tx broadcast error X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=d8c78d5c2cd8111359e0a3d2549c9eb585a20735;p=ldk-sample Allow "rejecting replacement" tx broadcast error We occasionally will attempt to broadcast transactions which conflicting with mempool transactions which are marked RBF. If we don't have a higher fee, we'll get a "rejecting replacement" error, which should not cause a panic. --- diff --git a/src/bitcoind_client.rs b/src/bitcoind_client.rs index fd21b59..61e67c2 100644 --- a/src/bitcoind_client.rs +++ b/src/bitcoind_client.rs @@ -262,6 +262,7 @@ impl BroadcasterInterface for BitcoindClient { && !err_str.contains("Inputs missing or spent") && !err_str.contains("bad-txns-inputs-missingorspent") && !err_str.contains("non-BIP68-final") + && !err_str.contains("insufficient fee, rejecting replacement ") { panic!("{}", e); }