From 13b3c55ef7b3e2aa36ad1987c0f93ff50b1be30f Mon Sep 17 00:00:00 2001 From: yyforyongyu Date: Sat, 6 Jan 2024 05:42:24 +0800 Subject: [PATCH] wallet: fix error match pattern for `missing-inputs` --- wallet/wallet.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wallet/wallet.go b/wallet/wallet.go index efe92e3943..953787fc4f 100644 --- a/wallet/wallet.go +++ b/wallet/wallet.go @@ -4131,7 +4131,7 @@ func MapBroadcastBackendError(err error) error { // // https://github.com/bitcoin/bitcoin/blob/9bf5768dd628b3a7c30dd42b5ed477a92c4d3540/src/node/transaction.cpp#L49 // https://github.com/bitcoin/bitcoin/blob/0.20/src/validation.cpp#L642 - case match(err, "missing inputs") || + case match(err, "missing-inputs") || match(err, "bad-txns-inputs-missingorspent"): returnErr = &ErrDoubleSpend{