File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -401,16 +401,16 @@ void CChainLocksHandler::BlockConnected(const std::shared_ptr<const CBlock>& pbl
401401 return ;
402402 }
403403
404- if (uint32_t { clsig_height} > WITH_LOCK (cs, return bestChainLock.getHeight ())) {
404+ if (clsig_height > WITH_LOCK (cs, return bestChainLock.getHeight ())) {
405405 // Get the ancestor block for the chainlock
406- const CBlockIndex* pindexAncestor = pindex->GetAncestor (uint32_t { clsig_height} );
406+ const CBlockIndex* pindexAncestor = pindex->GetAncestor (uint32_t ( clsig_height) );
407407 if (!pindexAncestor) {
408408 LogPrint (BCLog::CHAINLOCKS, " CChainLocksHandler::%s -- Cannot find ancestor block at height %d for chainlock\n " ,
409409 __func__, clsig_height);
410410 return ;
411411 }
412412
413- auto clsig = CChainLockSig (uint32_t { clsig_height} , pindexAncestor->GetBlockHash (), coinbase_cl.signature );
413+ auto clsig = CChainLockSig (uint32_t ( clsig_height) , pindexAncestor->GetBlockHash (), coinbase_cl.signature );
414414 auto result = ProcessNewChainLock (-1 , clsig, ::SerializeHash (clsig));
415415 if (result.m_error .has_value ()) {
416416 LogPrint (BCLog::CHAINLOCKS, " CChainLocksHandler::%s -- Failed to process chainlock from coinbase: %s\n " ,
You can’t perform that action at this time.
0 commit comments