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.
This commit is contained in:
Yong 2024-06-25 22:27:44 +08:00 committed by GitHub
parent f6db48af5a
commit cc26860b40
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.