1
0
Fork 0
forked from lthn/blockchain

got rid of console outputs

This commit is contained in:
cryptozoidberg 2020-05-23 12:14:19 +02:00
parent 2be08eae0d
commit 20d93cafd3
No known key found for this signature in database
GPG key ID: 22DEB97A54C6FDEC

View file

@ -3030,7 +3030,7 @@ bool blockchain_storage::get_est_height_from_date(uint64_t date, uint64_t& res_h
uint64_t aim = date - 46800;
uint64_t high_boundary = date - 3600; //1 hour
std::cout << "ENTRY: low_boundary(minutes):" << low_boundary/60 << " high_boundary(minutes): " << high_boundary / 60 << std::endl;
//std::cout << "ENTRY: low_boundary(minutes):" << low_boundary/60 << " high_boundary(minutes): " << high_boundary / 60 << std::endl;
uint64_t iteration_coun = 0;
uint64_t current_low_boundary = 0;
@ -3060,8 +3060,8 @@ bool blockchain_storage::get_est_height_from_date(uint64_t date, uint64_t& res_h
return true;
}
std::cout << "est_h:" << calculated_estimated_height << ", ts(min): " << ts / 60 << " distance to RIGHT minutes: " << int64_t((int64_t(ts) - int64_t(high_boundary))) / 60 << std::endl;
std::cout << "OOFFSET: -" << offset << std::endl;
//std::cout << "est_h:" << calculated_estimated_height << ", ts(min): " << ts / 60 << " distance to RIGHT minutes: " << int64_t((int64_t(ts) - int64_t(high_boundary))) / 60 << std::endl;
//std::cout << "OOFFSET: -" << offset << std::endl;
calculated_estimated_height -= offset;
}
else if (ts < low_boundary)
@ -3080,8 +3080,8 @@ bool blockchain_storage::get_est_height_from_date(uint64_t date, uint64_t& res_h
//CHECK_AND_ASSERT_MES(offset > 2, true,
// "offset is too low = " << offset);
std::cout << "est_h:" << calculated_estimated_height << ", ts(min): " << ts / 60 << " distance to LEFT minutes: " << int64_t((int64_t(low_boundary) - int64_t(ts))) / 60 << std::endl;
std::cout << "OOFFSET: +" << offset << std::endl;
//std::cout << "est_h:" << calculated_estimated_height << ", ts(min): " << ts / 60 << " distance to LEFT minutes: " << int64_t((int64_t(low_boundary) - int64_t(ts))) / 60 << std::endl;
//std::cout << "OOFFSET: +" << offset << std::endl;
calculated_estimated_height += offset;
}
else