mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
refactor: use CHECK_NONFATAL to avoid single-use symbol
This commit is contained in:
parent
8426e018bf
commit
323cfed595
1 changed files with 1 additions and 3 deletions
|
|
@ -778,9 +778,7 @@ static RPCHelpMan getblocktemplate()
|
|||
}
|
||||
ENTER_CRITICAL_SECTION(cs_main);
|
||||
|
||||
std::optional<uint256> maybe_tip{miner.getTipHash()};
|
||||
CHECK_NONFATAL(maybe_tip);
|
||||
tip = maybe_tip.value();
|
||||
tip = CHECK_NONFATAL(miner.getTipHash()).value();
|
||||
|
||||
if (!IsRPCRunning())
|
||||
throw JSONRPCError(RPC_CLIENT_NOT_CONNECTED, "Shutting down");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue