Skip to content

Commit c7b5e7d

Browse files
committed
chore: apply review suggestions
1 parent d307453 commit c7b5e7d

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/llmq/quorums.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ uint256 MakeQuorumKey(const CQuorum& q)
2626
return hw.GetHash();
2727
}
2828

29-
void DataCleanupHelper(CDBWrapper& db, std::set<uint256> skip_list, bool compact)
29+
void DataCleanupHelper(CDBWrapper& db, const std::set<uint256>& skip_list, bool compact)
3030
{
3131
const auto prefixes = {DB_QUORUM_QUORUM_VVEC, DB_QUORUM_SK_SHARE};
3232

src/llmq/quorums.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include <uint256.h>
1818
#include <util/time.h>
1919

20+
#include <set>
2021
#include <string>
2122
#include <vector>
2223

@@ -34,7 +35,7 @@ extern const std::string DB_QUORUM_SK_SHARE;
3435
extern const std::string DB_QUORUM_QUORUM_VVEC;
3536

3637
uint256 MakeQuorumKey(const CQuorum& q);
37-
void DataCleanupHelper(CDBWrapper& db, std::set<uint256> skip_list, bool compact = false);
38+
void DataCleanupHelper(CDBWrapper& db, const std::set<uint256>& skip_list, bool compact = false);
3839

3940
/**
4041
* Object used as a key to store CQuorumDataRequest

src/llmq/quorumsman.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ MessageProcessingResult CQuorumManager::ProcessMessage(CNode& pfrom, CConnman& c
521521
}
522522

523523
if (request.GetError() != CQuorumDataRequest::Errors::NONE) {
524-
LogPrint(BCLog::LLMQ, "CQuorumManager::%s -- %s: %s, from peer=%d\n", __func__, msg_type, strprintf("Error %d (%s)", request.GetError(), request.GetErrorString()), pfrom.GetId());
524+
LogPrint(BCLog::LLMQ, "CQuorumManager::%s -- %s: Error %d (%s), from peer=%d\n", __func__, msg_type, request.GetError(), request.GetErrorString(), pfrom.GetId());
525525
return {};
526526
}
527527

0 commit comments

Comments
 (0)