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.
2 parents 5c82e35 + 30f0262 commit 679f620Copy full SHA for 679f620
src/rpc/mining.cpp
@@ -1734,7 +1734,7 @@ static RPCHelpMan testproposedblock()
1734
uint256 hash = block.GetHash();
1735
BlockMap::iterator mi = chainman.BlockIndex().find(hash);
1736
if (mi != chainman.BlockIndex().end())
1737
- throw JSONRPCError(RPC_VERIFY_ERROR, "already have block");
+ throw JSONRPCError(RPC_VERIFY_ALREADY_IN_CHAIN, "already have block");
1738
1739
CBlockIndex* const pindexPrev = chainman.ActiveChain().Tip();
1740
// TestBlockValidity only supports blocks built on the current Tip
0 commit comments