Skip to content

Commit

Permalink
btcjson: add RPC_IN_WARMUP error code
Browse files Browse the repository at this point in the history
This adds an error code for the `RPC_IN_WARMUP` error code defined at
https://github.com/bitcoin/bitcoin/blob/master/src/rpc/protocol.h#L49
which is thrown when bitcoind has started but has not yet finished
verifying recent blocks and being ready for rpc calls.
  • Loading branch information
sangaman authored and jcvernaleo committed Mar 9, 2020
1 parent 96f3808 commit fd0921b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions btcjson/jsonrpcerr.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const (
ErrRPCDatabase RPCErrorCode = -20
ErrRPCDeserialization RPCErrorCode = -22
ErrRPCVerify RPCErrorCode = -25
ErrRPCInWarmup RPCErrorCode = -28
)

// Peer-to-peer client errors.
Expand Down

0 comments on commit fd0921b

Please sign in to comment.