@@ -376,7 +376,7 @@ void NetInstantSend::ProcessInstantSendLock(NodeId from, const uint256& hash, co
376376 }
377377 // Let's see if the TX that was locked by this islock is already mined in a ChainLocked block. If yes,
378378 // we can simply ignore the islock, as the ChainLock implies locking of all TXs in that chain
379- if (minedHeight.has_value () && m_is_manager. Chainlocks () .HasChainLock (*minedHeight, hashBlock)) {
379+ if (minedHeight.has_value () && m_chainlocks .HasChainLock (*minedHeight, hashBlock)) {
380380 LogPrint (BCLog::INSTANTSEND, /* Continued */
381381 " NetSigning::%s -- txlock=%s, islock=%s: dropping islock as it already got a "
382382 " ChainLock in block %s, peer=%d\n " ,
@@ -501,7 +501,7 @@ void NetInstantSend::UpdatedBlockTip(const CBlockIndex* pindexNew, const CBlockI
501501{
502502 bool fDIP0008Active = pindexNew->pprev && pindexNew->pprev ->nHeight >= Params ().GetConsensus ().DIP0008Height ;
503503
504- if (m_is_manager. Chainlocks () .IsEnabled () && fDIP0008Active ) {
504+ if (m_chainlocks .IsEnabled () && fDIP0008Active ) {
505505 // Nothing to do here. We should keep all islocks and let chainlocks handle them.
506506 return ;
507507 }
@@ -529,7 +529,7 @@ void NetInstantSend::BlockConnected(const std::shared_ptr<const CBlock>& pblock,
529529 m_is_manager.CacheTipHeight (pindex);
530530
531531 if (m_mn_sync.IsBlockchainSynced ()) {
532- const bool has_chainlock = m_is_manager. Chainlocks () .HasChainLock (pindex->nHeight , pindex->GetBlockHash ());
532+ const bool has_chainlock = m_chainlocks .HasChainLock (pindex->nHeight , pindex->GetBlockHash ());
533533 for (const auto & tx : pblock->vtx ) {
534534 if (tx->IsCoinBase () || tx->vin .empty ()) {
535535 // coinbase and TXs with no inputs can't be locked
@@ -571,7 +571,7 @@ void NetInstantSend::ResolveBlockConflicts(const uint256& islockHash, const inst
571571 bool hasChainLockedConflict = false ;
572572 for (const auto & p : conflicts) {
573573 const auto * pindex = p.first ;
574- if (m_is_manager. Chainlocks () .HasChainLock (pindex->nHeight , pindex->GetBlockHash ())) {
574+ if (m_chainlocks .HasChainLock (pindex->nHeight , pindex->GetBlockHash ())) {
575575 hasChainLockedConflict = true ;
576576 break ;
577577 }
0 commit comments