Change the way we store Enrollments #735
Labels
prio-high
Will have an effect in the next three sprints
Story-Points:5
This takes 3 to 5 days to complete
type-bug
Things don't work as they were intended to, or the way they were intended to work doesn't make sense
type-enhancement
An improvement of existing functionalities
Milestone
Currently we add
Enrollment
to theEnrollmentManager
when they are received but before they are validated:https://github.com/bpfkorea/agora/blob/05bfe591aec457544bfe9fc8b799f592d4d6b303/source/agora/node/Node.d#L507-L518
Then consensus is made on them. This has a few issues:
addValidatedBlock
does not add Enrollments, only update their height, which mean catch-up is broken.It would be best to have those two data set apart, and only have active enrollments in the EnrollmentManager. The separation should probably be similar to transaction pool / UTXO set.
Definition of Done:
The text was updated successfully, but these errors were encountered: