Skip to content

Commit

Permalink
Merge pull request #893 from ziggie1984/small-err-match-fix
Browse files Browse the repository at this point in the history
chain: Match for error code instead of text.
  • Loading branch information
Roasbeef authored Oct 27, 2023
2 parents e3ff374 + c64eb08 commit 2795f3d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chain/mempool.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ import (
const (
// txNotFoundErr is an error returned from bitcoind's
// `getrawtransaction` RPC when the requested txid cannot be found.
txNotFoundErr = "-5: No such mempool or blockchain transaction"
// https://github.com/bitcoin/bitcoin/blob/fa05a726c225dc65dee79367bb67f099ae4f99e6/src/rpc/rawtransaction.cpp#L366
txNotFoundErr = "-5: No such mempool"

// DefaultGetRawTxBatchSize specifies the default number of requests to
// be batched before sending them to the bitcoind client.
Expand Down

0 comments on commit 2795f3d

Please sign in to comment.