mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-02 09:46:52 -05:00
refactor: use CHECK_NONFATAL to avoid single-use symbol
This commit is contained in:
parent
5fb2b70489
commit
f6dc6db44d
1 changed files with 1 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue