Skip to content

Commit

Permalink
fixup! RPC/Mining: Support overriding BlockAssembler options in RPC p…
Browse files Browse the repository at this point in the history
…arams
  • Loading branch information
luke-jr committed Jun 17, 2024
1 parent 4317904 commit ed55bf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rpc/mining.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@ static RPCHelpMan getblocktemplate()
if (!tmpl) throw JSONRPCError(RPC_OUT_OF_MEMORY, "Out of memory");
return TemplateToJSON(consensusParams, chainman, &*tmpl, local_pindexPrev, setClientRules, tx_update_counter);
}
Assume(options == options_def);
CHECK_NONFATAL(options == options_def);

// Clear pindexPrev so future calls make a new block, despite any failures from here on
pindexPrev = nullptr;
Expand Down

0 comments on commit ed55bf3

Please sign in to comment.