Skip to content

Commit

Permalink
wallet: fix error match pattern for missing-inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
yyforyongyu committed Jan 5, 2024
1 parent 36e41df commit 13b3c55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wallet/wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 13b3c55

Please sign in to comment.