Merge 679f620a07 into merged_master (Elements PR #928)

This commit is contained in:
James Dorfman 2023-03-13 05:27:12 +00:00
commit 96c650b849

View file

@ -1734,7 +1734,7 @@ static RPCHelpMan testproposedblock()
uint256 hash = block.GetHash();
BlockMap::iterator mi = chainman.BlockIndex().find(hash);
if (mi != chainman.BlockIndex().end())
throw JSONRPCError(RPC_VERIFY_ERROR, "already have block");
throw JSONRPCError(RPC_VERIFY_ALREADY_IN_CHAIN, "already have block");
CBlockIndex* const pindexPrev = chainman.ActiveChain().Tip();
// TestBlockValidity only supports blocks built on the current Tip