Added comment explaining rationale for no LOCK(cs) in CSuperblock::IsValid

This commit is contained in:
Tim Flynn 2016-08-13 08:54:24 -04:00
parent 92adc98380
commit c050ed7c24

View File

@ -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 = "";