Skip to content

Commit

Permalink
rpcclient: update error str to match both versions (#2205)
Browse files Browse the repository at this point in the history
This commit updates the error str to match the same error returned from
`btcd` for both pre-0.24.2 and post-0.24.2.
  • Loading branch information
yyforyongyu authored Jun 25, 2024
1 parent f6db48a commit cc26860
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rpcclient/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,10 @@ var BtcdErrMap = map[string]error{
"transaction already exists in blockchain": ErrTxAlreadyConfirmed,

// A transaction in the mempool.
"already have transaction in mempool": ErrTxAlreadyInMempool,
//
// NOTE: For btcd v0.24.2 and beyond, the error message is "already
// have transaction in mempool".
"already have transaction": ErrTxAlreadyInMempool,

// A transaction with missing inputs, that never existed or only
// existed once in the past.
Expand Down

0 comments on commit cc26860

Please sign in to comment.