Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Increase rescan performance of old milestones after IRI restart #1204
IRI always scans all potential milestone candidates after a restart. Depending on the database size this can take a really long time (hours in the worst case). If we have a local snapshot we can always immediately discard the transactions prior to the snapshot point because the node doesn't need them anymore. This increases the restart performance of IRI massively (few seconds).
Type of change
Please delete items that are not relevant.
left a comment
-> my proposal is to pull this out of the validate milestone and into a function that checks if the index is valid or needed before calling the validation.