Use void as return type for WriteContributions

This commit is contained in:
Alexander Block 2019-01-17 15:25:43 +01:00
parent edac100f5c
commit b627528cef
2 changed files with 2 additions and 3 deletions

View File

@ -101,7 +101,7 @@ int CQuorum::GetMemberIndex(const uint256& proTxHash) const
return -1; return -1;
} }
bool CQuorum::WriteContributions(CEvoDB& evoDb) void CQuorum::WriteContributions(CEvoDB& evoDb)
{ {
uint256 dbKey = MakeQuorumKey(*this); uint256 dbKey = MakeQuorumKey(*this);
@ -111,7 +111,6 @@ bool CQuorum::WriteContributions(CEvoDB& evoDb)
if (skShare.IsValid()) { if (skShare.IsValid()) {
evoDb.GetRawDB().Write(std::make_pair(DB_QUORUM_SK_SHARE, dbKey), skShare); evoDb.GetRawDB().Write(std::make_pair(DB_QUORUM_SK_SHARE, dbKey), skShare);
} }
return true;
} }
bool CQuorum::ReadContributions(CEvoDB& evoDb) bool CQuorum::ReadContributions(CEvoDB& evoDb)

View File

@ -63,7 +63,7 @@ public:
CBLSSecretKey GetSkShare() const; CBLSSecretKey GetSkShare() const;
private: private:
bool WriteContributions(CEvoDB& evoDb); void WriteContributions(CEvoDB& evoDb);
bool ReadContributions(CEvoDB& evoDb); bool ReadContributions(CEvoDB& evoDb);
static void StartCachePopulatorThread(std::shared_ptr<CQuorum> _this); static void StartCachePopulatorThread(std::shared_ptr<CQuorum> _this);
}; };