Skip to content

Commit cc26860

Browse files
authored
rpcclient: update error str to match both versions (#2205)
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.
1 parent f6db48a commit cc26860

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

rpcclient/errors.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,10 @@ var BtcdErrMap = map[string]error{
411411
"transaction already exists in blockchain": ErrTxAlreadyConfirmed,
412412

413413
// A transaction in the mempool.
414-
"already have transaction in mempool": ErrTxAlreadyInMempool,
414+
//
415+
// NOTE: For btcd v0.24.2 and beyond, the error message is "already
416+
// have transaction in mempool".
417+
"already have transaction": ErrTxAlreadyInMempool,
415418

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

0 commit comments

Comments
 (0)