Skip to content

Commit 46a28e6

Browse files
committed
fmt: apply clang-format
1 parent c452f88 commit 46a28e6

File tree

15 files changed

+55
-49
lines changed

15 files changed

+55
-49
lines changed

src/chainlock/chainlock.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ class CChainLocksHandler final : public chainlock::ChainLockSignerParent
8787
EXCLUSIVE_LOCKS_REQUIRED(!cs);
8888
chainlock::ChainLockSig GetBestChainLock() const
8989
EXCLUSIVE_LOCKS_REQUIRED(!cs);
90-
void UpdateTxFirstSeenMap(const Uint256HashSet& tx, const int64_t& time) override
91-
EXCLUSIVE_LOCKS_REQUIRED(!cs);
90+
void UpdateTxFirstSeenMap(const Uint256HashSet& tx, const int64_t& time) override EXCLUSIVE_LOCKS_REQUIRED(!cs);
9291

9392
[[nodiscard]] MessageProcessingResult ProcessNewChainLock(NodeId from, const chainlock::ChainLockSig& clsig,
9493
const uint256& hash) override

src/chainlock/signing.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@ class ChainLockSigner final : public llmq::CRecoveredSigsListener
8080
[[nodiscard]] MessageProcessingResult HandleNewRecoveredSig(const llmq::CRecoveredSig& recoveredSig) override
8181
EXCLUSIVE_LOCKS_REQUIRED(!cs_signer);
8282

83-
[[nodiscard]] std::vector<std::shared_ptr<Uint256HashSet>> Cleanup()
84-
EXCLUSIVE_LOCKS_REQUIRED(!cs_signer);
83+
[[nodiscard]] std::vector<std::shared_ptr<Uint256HashSet>> Cleanup() EXCLUSIVE_LOCKS_REQUIRED(!cs_signer);
8584

8685
private:
8786
[[nodiscard]] BlockTxs::mapped_type GetBlockTxs(const uint256& blockHash)

src/evo/cbtx.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ auto CachedGetQcHashesQcIndexedHashes(const CBlockIndex* pindexPrev, const llmq:
5858

5959
static Mutex cs_cache;
6060
static std::map<Consensus::LLMQType, std::vector<const CBlockIndex*>> quorums_cached GUARDED_BY(cs_cache);
61-
static std::map<Consensus::LLMQType, Uint256LruHashMap<std::pair<uint256, int>>> qc_hashes_cached
62-
GUARDED_BY(cs_cache);
61+
static std::map<Consensus::LLMQType, Uint256LruHashMap<std::pair<uint256, int>>> qc_hashes_cached GUARDED_BY(cs_cache);
6362
static QcHashMap qcHashes_cached GUARDED_BY(cs_cache);
6463
static QcIndexedHashMap qcIndexedHashes_cached GUARDED_BY(cs_cache);
6564

src/evo/creditpool.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ static std::optional<CreditPoolDataPerBlock> GetCreditDataFromBlock(const gsl::n
6868
CreditPoolDataPerBlock blockData;
6969

7070
static Mutex cache_mutex;
71-
static Uint256LruHashMap<CreditPoolDataPerBlock> block_data_cache GUARDED_BY(
72-
cache_mutex){static_cast<size_t>(Params().CreditPoolPeriodBlocks()) * 2};
71+
static Uint256LruHashMap<CreditPoolDataPerBlock> block_data_cache GUARDED_BY(cache_mutex){
72+
static_cast<size_t>(Params().CreditPoolPeriodBlocks()) * 2};
7373
if (LOCK(cache_mutex); block_data_cache.get(block_index->GetBlockHash(), blockData)) {
7474
return blockData;
7575
}

src/evo/creditpool.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class CCreditPoolManager
111111
private:
112112
static constexpr size_t CreditPoolCacheSize = 1000;
113113
Mutex cache_mutex;
114-
Uint256LruHashMap<CCreditPool> creditPoolCache GUARDED_BY(cache_mutex) {CreditPoolCacheSize};
114+
Uint256LruHashMap<CCreditPool> creditPoolCache GUARDED_BY(cache_mutex){CreditPoolCacheSize};
115115

116116
CEvoDB& evoDb;
117117

src/evo/mnhftx.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class CMNHFManager : public AbstractEHFManager
9797
static constexpr size_t MNHFCacheSize = 1000;
9898
Mutex cs_cache;
9999
// versionBit <-> height
100-
Uint256LruHashMap<Signals> mnhfCache GUARDED_BY(cs_cache) {MNHFCacheSize};
100+
Uint256LruHashMap<Signals> mnhfCache GUARDED_BY(cs_cache){MNHFCacheSize};
101101

102102
public:
103103
explicit CMNHFManager(CEvoDB& evoDb);

src/instantsend/instantsend.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,9 @@ class CInstantSendManager final : public instantsend::InstantSendSignerParent
110110
instantsend::PendingState ProcessPendingInstantSendLocks()
111111
EXCLUSIVE_LOCKS_REQUIRED(!cs_nonLocked, !cs_pendingLocks, !cs_pendingRetry);
112112

113-
Uint256HashSet ProcessPendingInstantSendLocks(
114-
const Consensus::LLMQParams& llmq_params, int signOffset, bool ban,
115-
const Uint256HashMap<std::pair<NodeId, instantsend::InstantSendLockPtr>>& pend,
116-
std::vector<std::pair<NodeId, MessageProcessingResult>>& peer_activity)
113+
Uint256HashSet ProcessPendingInstantSendLocks(const Consensus::LLMQParams& llmq_params, int signOffset, bool ban,
114+
const Uint256HashMap<std::pair<NodeId, instantsend::InstantSendLockPtr>>& pend,
115+
std::vector<std::pair<NodeId, MessageProcessingResult>>& peer_activity)
117116
EXCLUSIVE_LOCKS_REQUIRED(!cs_nonLocked, !cs_pendingLocks, !cs_pendingRetry);
118117
MessageProcessingResult ProcessInstantSendLock(NodeId from, const uint256& hash,
119118
const instantsend::InstantSendLockPtr& islock)

src/instantsend/signing.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@ class InstantSendSigner final : public llmq::CRecoveredSigsListener
7878
void Start();
7979
void Stop();
8080

81-
void ClearInputsFromQueue(const Uint256HashSet& ids)
82-
EXCLUSIVE_LOCKS_REQUIRED(!cs_input_requests);
81+
void ClearInputsFromQueue(const Uint256HashSet& ids) EXCLUSIVE_LOCKS_REQUIRED(!cs_input_requests);
8382

8483
void ClearLockFromQueue(const InstantSendLockPtr& islock)
8584
EXCLUSIVE_LOCKS_REQUIRED(!cs_creating);

src/llmq/quorums.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,8 @@ class CQuorumManager
250250
mutable Mutex cs_map_quorums;
251251
mutable std::map<Consensus::LLMQType, Uint256LruHashMap<CQuorumPtr>> mapQuorumsCache GUARDED_BY(cs_map_quorums);
252252
mutable Mutex cs_scan_quorums;
253-
mutable std::map<Consensus::LLMQType, Uint256LruHashMap<std::vector<CQuorumCPtr>>> scanQuorumsCache GUARDED_BY(cs_scan_quorums);
253+
mutable std::map<Consensus::LLMQType, Uint256LruHashMap<std::vector<CQuorumCPtr>>> scanQuorumsCache
254+
GUARDED_BY(cs_scan_quorums);
254255
mutable Mutex cs_cleanup;
255256
mutable std::map<Consensus::LLMQType, Uint256LruHashMap<uint256>> cleanupQuorumsCache GUARDED_BY(cs_cleanup);
256257

src/llmq/signing_shares.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,9 +1049,8 @@ void CSigSharesManager::CollectSigSharesToSendConcentrated(std::unordered_map<No
10491049
}
10501050
}
10511051

1052-
void CSigSharesManager::CollectSigSharesToAnnounce(
1053-
const CConnman& connman,
1054-
std::unordered_map<NodeId, Uint256HashMap<CSigSharesInv>>& sigSharesToAnnounce)
1052+
void CSigSharesManager::CollectSigSharesToAnnounce(const CConnman& connman,
1053+
std::unordered_map<NodeId, Uint256HashMap<CSigSharesInv>>& sigSharesToAnnounce)
10551054
{
10561055
AssertLockHeld(cs);
10571056

0 commit comments

Comments
 (0)