diff --git a/src/rpc/mining.cpp b/src/rpc/mining.cpp index 5de67599432..cfaf67eb1b6 100644 --- a/src/rpc/mining.cpp +++ b/src/rpc/mining.cpp @@ -1439,7 +1439,7 @@ UniValue testproposedblock(const JSONRPCRequest& request) uint256 hash = block.GetHash(); BlockMap::iterator mi = mapBlockIndex.find(hash); if (mi != mapBlockIndex.end()) - throw JSONRPCError(RPC_VERIFY_ERROR, "already have block"); + throw JSONRPCError(RPC_VERIFY_ALREADY_IN_CHAIN, "already have block"); CBlockIndex* const pindexPrev = chainActive.Tip(); // TestBlockValidity only supports blocks built on the current Tip