Skip to content

Commit b627528

Browse files
committed
Use void as return type for WriteContributions
1 parent edac100 commit b627528

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/llmq/quorums.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ int CQuorum::GetMemberIndex(const uint256& proTxHash) const
101101
return -1;
102102
}
103103

104-
bool CQuorum::WriteContributions(CEvoDB& evoDb)
104+
void CQuorum::WriteContributions(CEvoDB& evoDb)
105105
{
106106
uint256 dbKey = MakeQuorumKey(*this);
107107

@@ -111,7 +111,6 @@ bool CQuorum::WriteContributions(CEvoDB& evoDb)
111111
if (skShare.IsValid()) {
112112
evoDb.GetRawDB().Write(std::make_pair(DB_QUORUM_SK_SHARE, dbKey), skShare);
113113
}
114-
return true;
115114
}
116115

117116
bool CQuorum::ReadContributions(CEvoDB& evoDb)

src/llmq/quorums.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class CQuorum
6363
CBLSSecretKey GetSkShare() const;
6464

6565
private:
66-
bool WriteContributions(CEvoDB& evoDb);
66+
void WriteContributions(CEvoDB& evoDb);
6767
bool ReadContributions(CEvoDB& evoDb);
6868
static void StartCachePopulatorThread(std::shared_ptr<CQuorum> _this);
6969
};

0 commit comments

Comments
 (0)