mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
Merge 606e306277 into merged_master (Bitcoin PR bitcoin/bitcoin#22981)
This commit is contained in:
commit
8250bf53d2
10 changed files with 29 additions and 29 deletions
|
|
@ -1032,7 +1032,7 @@ static RPCHelpMan submitblock()
|
|||
bool new_block;
|
||||
auto sc = std::make_shared<submitblock_StateCatcher>(block.GetHash());
|
||||
RegisterSharedValidationInterface(sc);
|
||||
bool accepted = chainman.ProcessNewBlock(Params(), blockptr, /* fForceProcessing */ true, /* fNewBlock */ &new_block);
|
||||
bool accepted = chainman.ProcessNewBlock(Params(), blockptr, /*force_processing=*/true, /*new_block=*/&new_block);
|
||||
UnregisterSharedValidationInterface(sc);
|
||||
if (!new_block && accepted) {
|
||||
return "duplicate";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue