mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-20 10:38:42 +01:00
refactor: use CHECK_NONFATAL to avoid single-use symbol
This commit is contained in:
parent
5fb2b70489
commit
f6dc6db44d
@ -667,9 +667,7 @@ static RPCHelpMan getblocktemplate()
|
||||
ChainstateManager& chainman = EnsureChainman(node);
|
||||
Mining& miner = EnsureMining(node);
|
||||
LOCK(cs_main);
|
||||
std::optional<uint256> maybe_tip{miner.getTipHash()};
|
||||
CHECK_NONFATAL(maybe_tip);
|
||||
uint256 tip{maybe_tip.value()};
|
||||
uint256 tip{CHECK_NONFATAL(miner.getTipHash()).value()};
|
||||
|
||||
std::string strMode = "template";
|
||||
UniValue lpval = NullUniValue;
|
||||
|
Loading…
Reference in New Issue
Block a user