mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
Merge 8f604361eb into merged_master (Bitcoin PR #16194)
This commit is contained in:
commit
1e58aac3d1
8 changed files with 231 additions and 165 deletions
|
|
@ -1308,8 +1308,8 @@ UniValue testproposedblock(const JSONRPCRequest& request)
|
|||
LOCK(cs_main);
|
||||
|
||||
uint256 hash = block.GetHash();
|
||||
BlockMap::iterator mi = mapBlockIndex.find(hash);
|
||||
if (mi != mapBlockIndex.end())
|
||||
BlockMap::iterator mi = ::BlockIndex().find(hash);
|
||||
if (mi != ::BlockIndex().end())
|
||||
throw JSONRPCError(RPC_VERIFY_ERROR, "already have block");
|
||||
|
||||
CBlockIndex* const pindexPrev = ::ChainActive().Tip();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue