Skip to content

Commit

Permalink
Use void as return type for WriteContributions
Browse files Browse the repository at this point in the history
  • Loading branch information
codablock committed Jan 17, 2019
1 parent edac100 commit b627528
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/llmq/quorums.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ int CQuorum::GetMemberIndex(const uint256& proTxHash) const
return -1;
}

bool CQuorum::WriteContributions(CEvoDB& evoDb)
void CQuorum::WriteContributions(CEvoDB& evoDb)
{
uint256 dbKey = MakeQuorumKey(*this);

Expand All @@ -111,7 +111,6 @@ bool CQuorum::WriteContributions(CEvoDB& evoDb)
if (skShare.IsValid()) {
evoDb.GetRawDB().Write(std::make_pair(DB_QUORUM_SK_SHARE, dbKey), skShare);
}
return true;
}

bool CQuorum::ReadContributions(CEvoDB& evoDb)
Expand Down
2 changes: 1 addition & 1 deletion src/llmq/quorums.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class CQuorum
CBLSSecretKey GetSkShare() const;

private:
bool WriteContributions(CEvoDB& evoDb);
void WriteContributions(CEvoDB& evoDb);
bool ReadContributions(CEvoDB& evoDb);
static void StartCachePopulatorThread(std::shared_ptr<CQuorum> _this);
};
Expand Down

0 comments on commit b627528

Please sign in to comment.