mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
Added comment explaining rationale for no LOCK(cs) in CSuperblock::IsValid
This commit is contained in:
parent
92adc98380
commit
c050ed7c24
@ -512,6 +512,10 @@ ParsePaymentSchedule(std::string& strPaymentAddresses, std::string& strPaymentAm
|
|||||||
bool CSuperblock::IsValid(const CTransaction& txNew)
|
bool CSuperblock::IsValid(const CTransaction& txNew)
|
||||||
{
|
{
|
||||||
// TODO : LOCK(cs);
|
// TODO : LOCK(cs);
|
||||||
|
// No reason for a lock here now since this method only accesses data
|
||||||
|
// internal to *this and since CSuperblock's are accessed only through
|
||||||
|
// shared pointers there's no way our object can get deleted while this
|
||||||
|
// code is running.
|
||||||
|
|
||||||
std::string strPayeesPossible = "";
|
std::string strPayeesPossible = "";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user