]> git.bitcoin.ninja Git - ldk-sample/commitdiff
Include bad-txns-inputs-missingorspent in allowed tx-broadcast errs
authorMatt Corallo <git@bluematt.me>
Mon, 21 Jun 2021 00:19:13 +0000 (00:19 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 21 Jun 2021 00:19:54 +0000 (00:19 +0000)
I saw this with Bitcoin Core 0.21.2, I guess "Inputs missing or
spent" was renamed.

src/bitcoind_client.rs

index ca4a18134423a17f21636fab53cc8d534e749af0..56b7f1a97b6c53fd5db2916f12880d83917ea14a 100644 (file)
@@ -246,6 +246,7 @@ impl BroadcasterInterface for BitcoindClient {
                                        let err_str = e.get_ref().unwrap().to_string();
                                        if !err_str.contains("Transaction already in block chain")
                                                && !err_str.contains("Inputs missing or spent")
+                                               && !err_str.contains("bad-txns-inputs-missingorspent")
                                                && !err_str.contains("non-BIP68-final")
                                        {
                                                panic!("{}", e);