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 5c82e35 commit 30f0262Copy full SHA for 30f0262
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