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:
parent
96f3808dc9
commit
fd0921b9b4
1 changed files with 1 additions and 0 deletions
|
@ -39,6 +39,7 @@ const (
|
||||||
ErrRPCDatabase RPCErrorCode = -20
|
ErrRPCDatabase RPCErrorCode = -20
|
||||||
ErrRPCDeserialization RPCErrorCode = -22
|
ErrRPCDeserialization RPCErrorCode = -22
|
||||||
ErrRPCVerify RPCErrorCode = -25
|
ErrRPCVerify RPCErrorCode = -25
|
||||||
|
ErrRPCInWarmup RPCErrorCode = -28
|
||||||
)
|
)
|
||||||
|
|
||||||
// Peer-to-peer client errors.
|
// Peer-to-peer client errors.
|
||||||
|
|
Loading…
Reference in a new issue