Skip to content

Commit

Permalink
Merge pull request #1554 from skalenetwork/enhancement/fix-patch
Browse files Browse the repository at this point in the history
Update StorageDestructionPatch.cpp
  • Loading branch information
DmytroNazarenko authored Jun 21, 2023
2 parents 8ba6d16 + 43b683b commit 01598e0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libskale/StorageDestructionPatch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@ time_t StorageDestructionPatch::storageDestructionPatchTimestamp;
time_t StorageDestructionPatch::lastBlockTimestamp;

bool StorageDestructionPatch::isEnabled() {
if ( storageDestructionPatchTimestamp == 0 ) {
return false;
}
return storageDestructionPatchTimestamp <= lastBlockTimestamp;
}
}

0 comments on commit 01598e0

Please sign in to comment.