🐛 fixed last commit

This commit is contained in:
EntireTwix 2021-05-28 01:58:56 -07:00
parent 4a0b7cafa6
commit efec7d0da9

View file

@ -10,7 +10,7 @@ struct Log
uint32_t end = 0;
void AddTrans(Transaction &&v)
{
if (data.size() <= end+1 && end+1 <= max_log_size) //if memory reserved is full
if (data.size() <= end+1 && end+1 < max_log_size) //if memory reserved is full
{
data.resize(data.size() + pre_log_size); //prefetching memory
}