btcjson: add RPC_IN_WARMUP error code

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.
This commit is contained in:
Daniel McNally 2020-02-18 01:51:23 -05:00 committed by John C. Vernaleo
parent 96f3808dc9
commit fd0921b9b4

View file

@ -39,6 +39,7 @@ const (
ErrRPCDatabase RPCErrorCode = -20
ErrRPCDeserialization RPCErrorCode = -22
ErrRPCVerify RPCErrorCode = -25
ErrRPCInWarmup RPCErrorCode = -28
)
// Peer-to-peer client errors.