@@ -76,23 +76,32 @@ class CChainLocksHandler final : public chainlock::ChainLockSignerParent
7676 void Start (const llmq::CInstantSendManager& isman);
7777 void Stop ();
7878
79- bool AlreadyHave (const CInv& inv) const EXCLUSIVE_LOCKS_REQUIRED(!cs);
80- bool GetChainLockByHash (const uint256& hash, chainlock::ChainLockSig& ret) const EXCLUSIVE_LOCKS_REQUIRED(!cs);
81- chainlock::ChainLockSig GetBestChainLock () const EXCLUSIVE_LOCKS_REQUIRED(!cs);
79+ bool AlreadyHave (const CInv& inv) const
80+ EXCLUSIVE_LOCKS_REQUIRED(!cs);
81+ bool GetChainLockByHash (const uint256& hash, chainlock::ChainLockSig& ret) const
82+ EXCLUSIVE_LOCKS_REQUIRED(!cs);
83+ chainlock::ChainLockSig GetBestChainLock () const
84+ EXCLUSIVE_LOCKS_REQUIRED(!cs);
8285 void UpdateTxFirstSeenMap (const std::unordered_set<uint256, StaticSaltedHasher>& tx, const int64_t & time) override
8386 EXCLUSIVE_LOCKS_REQUIRED(!cs);
8487
8588 [[nodiscard]] MessageProcessingResult ProcessNewChainLock (NodeId from, const chainlock::ChainLockSig& clsig,
8689 const uint256& hash) override
8790 EXCLUSIVE_LOCKS_REQUIRED(!cs);
8891
89- void AcceptedBlockHeader (gsl::not_null<const CBlockIndex*> pindexNew) EXCLUSIVE_LOCKS_REQUIRED(!cs);
92+ void AcceptedBlockHeader (gsl::not_null<const CBlockIndex*> pindexNew)
93+ EXCLUSIVE_LOCKS_REQUIRED(!cs);
9094 void UpdatedBlockTip (const llmq::CInstantSendManager& isman);
91- void TransactionAddedToMempool (const CTransactionRef& tx, int64_t nAcceptTime) EXCLUSIVE_LOCKS_REQUIRED(!cs);
92- void BlockConnected (const std::shared_ptr<const CBlock>& pblock, gsl::not_null<const CBlockIndex*> pindex) EXCLUSIVE_LOCKS_REQUIRED(!cs);
93- void BlockDisconnected (const std::shared_ptr<const CBlock>& pblock, gsl::not_null<const CBlockIndex*> pindexDisconnected) EXCLUSIVE_LOCKS_REQUIRED(!cs);
94- void CheckActiveState () EXCLUSIVE_LOCKS_REQUIRED(!cs);
95- void EnforceBestChainLock () EXCLUSIVE_LOCKS_REQUIRED(!cs);
95+ void TransactionAddedToMempool (const CTransactionRef& tx, int64_t nAcceptTime)
96+ EXCLUSIVE_LOCKS_REQUIRED(!cs);
97+ void BlockConnected (const std::shared_ptr<const CBlock>& pblock, gsl::not_null<const CBlockIndex*> pindex)
98+ EXCLUSIVE_LOCKS_REQUIRED(!cs);
99+ void BlockDisconnected (const std::shared_ptr<const CBlock>& pblock, gsl::not_null<const CBlockIndex*> pindexDisconnected)
100+ EXCLUSIVE_LOCKS_REQUIRED(!cs);
101+ void CheckActiveState ()
102+ EXCLUSIVE_LOCKS_REQUIRED(!cs);
103+ void EnforceBestChainLock ()
104+ EXCLUSIVE_LOCKS_REQUIRED(!cs);
96105
97106 bool HasChainLock (int nHeight, const uint256& blockHash) const override
98107 EXCLUSIVE_LOCKS_REQUIRED(!cs);
@@ -107,7 +116,8 @@ class CChainLocksHandler final : public chainlock::ChainLockSignerParent
107116 [[nodiscard]] bool IsEnabled () const override { return isEnabled; }
108117
109118private:
110- void Cleanup () EXCLUSIVE_LOCKS_REQUIRED(!cs);
119+ void Cleanup ()
120+ EXCLUSIVE_LOCKS_REQUIRED(!cs);
111121};
112122
113123bool AreChainLocksEnabled (const CSporkManager& sporkman);
0 commit comments