mirror of
https://github.com/Qortal/qortal.git
synced 2025-07-22 20:26:50 +00:00
Treat the genesis block as unpruned, as we leave this in the HSQLDB repository.
This commit is contained in:
@@ -146,6 +146,11 @@ public class PruneManager {
|
||||
throw new DataException("Unable to determine chain tip when checking if a block is pruned");
|
||||
}
|
||||
|
||||
if (height == 1) {
|
||||
// We don't prune the genesis block
|
||||
return false;
|
||||
}
|
||||
|
||||
final int ourLatestHeight = chainTip.getHeight();
|
||||
final int latestUnprunedHeight = ourLatestHeight - this.pruneBlockLimit;
|
||||
|
||||
|
Reference in New Issue
Block a user