Allow "rejecting replacement" tx broadcast error
authorMatt Corallo <649246+TheBlueMatt@users.noreply.github.com>
Tue, 17 Aug 2021 01:33:01 +0000 (01:33 +0000)
committerGitHub <noreply@github.com>
Tue, 17 Aug 2021 01:33:01 +0000 (01:33 +0000)
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.

src/bitcoind_client.rs

index fd21b5974040efc0afc42380fcd94df705c0e92d..61e67c28a7acea384c97f8819fa8415eeb1d3e7b 100644 (file)
@@ -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);
                                        }