We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88067dd commit 20475ecCopy full SHA for 20475ec
src/rpc/mining.cpp
@@ -1439,7 +1439,7 @@ UniValue testproposedblock(const JSONRPCRequest& request)
1439
uint256 hash = block.GetHash();
1440
BlockMap::iterator mi = mapBlockIndex.find(hash);
1441
if (mi != mapBlockIndex.end())
1442
- throw JSONRPCError(RPC_VERIFY_ERROR, "already have block");
+ throw JSONRPCError(RPC_VERIFY_ALREADY_IN_CHAIN, "already have block");
1443
1444
CBlockIndex* const pindexPrev = chainActive.Tip();
1445
// TestBlockValidity only supports blocks built on the current Tip
0 commit comments