Commit graph

6 commits

Author SHA1 Message Date
Oliver Gugger
ffcda0f629
rpcclient: add bitcoind version dependent error matching
Fixes #2404.
If different versions of bitcoind return different error strings, we
need a way to match those as well.
2025-08-19 09:00:02 +02:00
Yong
cc26860b40
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.
2024-06-25 10:27:44 -04:00
yyforyongyu
36683e0b96
rpcclient: define specific errors for chain backends
This commit adds detailed errors for all possible errors returned from
`sendrawtransaction` or `testmempoolaccept`, enabling upstream callers
to have refined control over the actions to be taken.
2024-03-18 23:08:47 +08:00
yyforyongyu
34721f02c1
rpcclient: replace ErrBitcoindVersion with ErrBackendVersion 2024-02-28 03:38:48 +08:00
yyforyongyu
ef54c49df4
multi: map btcd mempool acceptance errors to bitcoind's testmempoolaccept
This commit creates a `RejectReasonMap` to map the errors returned from
`btcd` to bitcoind's `testmempoolaccept` so the `RejectReason` is
unified at the RPC level. To make sure the map keys are unique, the
error strings are modified in `btcd`.
2024-01-15 17:22:41 +08:00
yyforyongyu
c7e40280d5
rpcclient: support testmempoolaccept for bitcoind 2024-01-15 17:22:41 +08:00