mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
Use void as return type for WriteContributions
This commit is contained in:
parent
edac100f5c
commit
b627528cef
@ -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)
|
||||||
|
@ -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);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user