From fcf6b82dab6bb74fa2c0de64781a4fff59c74bf7 Mon Sep 17 00:00:00 2001 From: Daniel McNally Date: Tue, 18 Feb 2020 01:51:23 -0500 Subject: [PATCH] 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. --- btcjson/jsonrpcerr.go | 1 + 1 file changed, 1 insertion(+) diff --git a/btcjson/jsonrpcerr.go b/btcjson/jsonrpcerr.go index 8996c47461..ea62fb55a6 100644 --- a/btcjson/jsonrpcerr.go +++ b/btcjson/jsonrpcerr.go @@ -39,6 +39,7 @@ const ( ErrRPCDatabase RPCErrorCode = -20 ErrRPCDeserialization RPCErrorCode = -22 ErrRPCVerify RPCErrorCode = -25 + ErrRPCInWarmup RPCErrorCode = -28 ) // Peer-to-peer client errors.