Skip to content

Commit

Permalink
Update src/evo/cbtx.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: PastaPastaPasta <6443210+PastaPastaPasta@users.noreply.github.com>
  • Loading branch information
knst and PastaPastaPasta authored Nov 19, 2024
1 parent 47b8f84 commit 22f0179
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/evo/cbtx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ bool CheckCbTxBestChainlock(const CBlock& block, const CBlockIndex* pindex,
return true;
}

auto prevBlockCoinbaseChainlock = GetNonNullCoinbaseChainlock(pindex->pprev);
const auto prevBlockCoinbaseChainlock = GetNonNullCoinbaseChainlock(pindex->pprev);
// If std::optional prevBlockCoinbaseChainlock is empty, then up to the previous block, coinbase Chainlock is null.
if (prevBlockCoinbaseChainlock.has_value()) {
// Previous block Coinbase has a non-null Chainlock: current block's Chainlock must be non-null and at least as new as the previous one
Expand Down

0 comments on commit 22f0179

Please sign in to comment.