iri
iri copied to clipboard
Remove the previous epoch spent text files from IRI
Description
Make IRI independent of the previous epoch spent text files and reliant only on the external spent-addresses-db
Motivation
Those text files take lots of space in IRI and bloat up the jar. They are not needed if we require people to use an external db
Requirements
- Delete the files from IRI
- Don't check for their existence and don't try to load them
This assumes people don't start from a global snapshot (sync from scratch). And if they do, then they need to have a way of getting the spent addresses data - e.g., with the release.
Ok, I want to extend this issue now to extend the global-snapshot.
The new requirements are:
- Create a new local-snapshots-db that has all the spent-addresses and global snapshot
- Sign it
- Upload it to an agreed place (TBD)
- Remove the accompanying
snapshotMainnet.txt
andpreviousEpochSpentAddrersses.txt
- delete logic for reading from files
- change
milestoneStart
Index to 0 in config (but put the global snapshot index in a comment) please. - Repeat for devnet
Extra motivation:
Faster load time
We will need to have a conversation with devops to have them sign and post the spent-addresses-db to an s3 bucket or some form of IF based storage.