Skip to content

Commit 76a458e

Browse files
committed
fmt: apply formatting suggestions from clang-format-diff.py
1 parent 63962ec commit 76a458e

File tree

7 files changed

+15
-9
lines changed

7 files changed

+15
-9
lines changed

src/governance/governance.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1221,7 +1221,8 @@ int CGovernanceManager::RequestGovernanceObjectVotes(CNode& peer, CConnman& conn
12211221
return RequestGovernanceObjectVotes(vNodeCopy, connman, peerman);
12221222
}
12231223

1224-
int CGovernanceManager::RequestGovernanceObjectVotes(const std::vector<CNode*>& vNodesCopy, CConnman& connman, const PeerManager& peerman) const
1224+
int CGovernanceManager::RequestGovernanceObjectVotes(const std::vector<CNode*>& vNodesCopy, CConnman& connman,
1225+
const PeerManager& peerman) const
12251226
{
12261227
static std::map<uint256, std::map<CService, int64_t> > mapAskedRecently;
12271228

src/governance/governance.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,8 @@ class CGovernanceManager : public GovernanceStore
358358
void InitOnLoad();
359359

360360
int RequestGovernanceObjectVotes(CNode& peer, CConnman& connman, const PeerManager& peerman) const;
361-
int RequestGovernanceObjectVotes(const std::vector<CNode*>& vNodesCopy, CConnman& connman, const PeerManager& peerman) const;
361+
int RequestGovernanceObjectVotes(const std::vector<CNode*>& vNodesCopy, CConnman& connman,
362+
const PeerManager& peerman) const;
362363

363364
/*
364365
* Trigger Management (formerly CGovernanceTriggerManager)

src/llmq/blockprocessor.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ PeerMsgRet CQuorumBlockProcessor::ProcessMessage(const CNode& peer, std::string_
6060
CFinalCommitment qc;
6161
vRecv >> qc;
6262

63-
WITH_LOCK(::cs_main, Assert(m_peerman)->EraseObjectRequest(peer.GetId(), CInv(MSG_QUORUM_FINAL_COMMITMENT, ::SerializeHash(qc))));
63+
WITH_LOCK(::cs_main, Assert(m_peerman)->EraseObjectRequest(peer.GetId(),
64+
CInv(MSG_QUORUM_FINAL_COMMITMENT, ::SerializeHash(qc))));
6465

6566
if (qc.IsNull()) {
6667
LogPrint(BCLog::LLMQ, "CQuorumBlockProcessor::%s -- null commitment from peer=%d\n", __func__, peer.GetId());

src/llmq/instantsend.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1446,7 +1446,8 @@ void CInstantSendManager::RemoveConflictingLock(const uint256& islockHash, const
14461446
}
14471447
}
14481448

1449-
void CInstantSendManager::AskNodesForLockedTx(const uint256& txid, const CConnman& connman, PeerManager& peerman, bool is_masternode)
1449+
void CInstantSendManager::AskNodesForLockedTx(const uint256& txid, const CConnman& connman, PeerManager& peerman,
1450+
bool is_masternode)
14501451
{
14511452
std::vector<CNode*> nodesToAskFor;
14521453
nodesToAskFor.reserve(4);
@@ -1476,7 +1477,8 @@ void CInstantSendManager::AskNodesForLockedTx(const uint256& txid, const CConnma
14761477
txid.ToString(), pnode->GetId());
14771478

14781479
CInv inv(MSG_TX, txid);
1479-
peerman.RequestObject(pnode->GetId(), inv, GetTime<std::chrono::microseconds>(), is_masternode, /* fForce = */ true);
1480+
peerman.RequestObject(pnode->GetId(), inv, GetTime<std::chrono::microseconds>(), is_masternode,
1481+
/* fForce = */ true);
14801482
}
14811483
}
14821484
for (CNode* pnode : nodesToAskFor) {

src/llmq/instantsend.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,7 @@ class CInstantSendManager : public CRecoveredSigsListener
315315
EXCLUSIVE_LOCKS_REQUIRED(!cs_inputReqests, !cs_nonLocked, !cs_pendingRetry);
316316
void ResolveBlockConflicts(const uint256& islockHash, const CInstantSendLock& islock)
317317
EXCLUSIVE_LOCKS_REQUIRED(!cs_inputReqests, !cs_nonLocked, !cs_pendingLocks, !cs_pendingRetry);
318-
static void AskNodesForLockedTx(const uint256& txid, const CConnman& connman, PeerManager& peerman,
319-
bool is_masternode);
318+
static void AskNodesForLockedTx(const uint256& txid, const CConnman& connman, PeerManager& peerman, bool is_masternode);
320319
void ProcessPendingRetryLockTxs()
321320
EXCLUSIVE_LOCKS_REQUIRED(!cs_creating, !cs_inputReqests, !cs_nonLocked, !cs_pendingRetry);
322321

src/llmq/signing.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,8 @@ static bool PreVerifyRecoveredSig(const CQuorumManager& quorum_manager, const CR
604604

605605
PeerMsgRet CSigningManager::ProcessMessageRecoveredSig(const CNode& pfrom, const std::shared_ptr<const CRecoveredSig>& recoveredSig)
606606
{
607-
WITH_LOCK(::cs_main, Assert(m_peerman)->EraseObjectRequest(pfrom.GetId(), CInv(MSG_QUORUM_RECOVERED_SIG, recoveredSig->GetHash())));
607+
WITH_LOCK(::cs_main, Assert(m_peerman)->EraseObjectRequest(pfrom.GetId(),
608+
CInv(MSG_QUORUM_RECOVERED_SIG, recoveredSig->GetHash())));
608609

609610
bool ban = false;
610611
if (!PreVerifyRecoveredSig(qman, *recoveredSig, ban)) {

src/spork.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ PeerMsgRet CSporkManager::ProcessSpork(const CNode& peer, PeerManager& peerman,
146146
uint256 hash = spork.GetHash();
147147

148148
WITH_LOCK(::cs_main, peerman.EraseObjectRequest(peer.GetId(), CInv(MSG_SPORK, hash)));
149-
std::string strLogMsg{strprintf("SPORK -- hash: %s id: %d value: %10d peer=%d", hash.ToString(), spork.nSporkID, spork.nValue, peer.GetId())};
149+
std::string strLogMsg{strprintf("SPORK -- hash: %s id: %d value: %10d peer=%d", hash.ToString(), spork.nSporkID,
150+
spork.nValue, peer.GetId())};
150151

151152
if (spork.nTimeSigned > GetAdjustedTime() + 2 * 60 * 60) {
152153
LogPrint(BCLog::SPORK, "CSporkManager::ProcessSpork -- ERROR: too far into the future\n");

0 commit comments

Comments
 (0)