-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature/delete_temp_siks_when_election_ends #1080
Commits on Sep 1, 2023
-
support for create elections with tempSIKs flag, temp SIKs will be pu…
…rged by the IST after results calculation
Configuration menu - View commit details
-
Copy full SHA for d132d57 - Browse repository at this point
Copy the full SHA d132d57View commit details -
changes on end2end tests: reverting almost all the tests to the previ…
…ous API, splitting census proofs generation from siks proof generations. SIK related purges on election with tempSIKs moved to the top of the functions, trying to solve IST and State issue
Configuration menu - View commit details
-
Copy full SHA for 1171fe9 - Browse repository at this point
Copy the full SHA 1171fe9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5b54de1 - Browse repository at this point
Copy the full SHA 5b54de1View commit details -
arbo: implement the Delete() method
For the temporary SIK elections, we need Arbo to implement a Delete() mechanism. The current Delete method removes the key, leaf and also all the intermediary nodes that are not needed. Signed-off-by: p4u <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 58f5afe - Browse repository at this point
Copy the full SHA 58f5afeView commit details -
arbo: fix clean-up of empty nodes when going up
Fix the upAfterDelete function and unify it with up(). So now also Update and Add methods are removing empty nodes. Add a test to check the disk size after some operations. Signed-off-by: p4u <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b850224 - Browse repository at this point
Copy the full SHA b850224View commit details -
Configuration menu - View commit details
-
Copy full SHA for 443384b - Browse repository at this point
Copy the full SHA 443384bView commit details -
metadb: add goleveldb implementation
Having a second implementation of the db interface is useful for testing purposes. We can easily switch from pebble to leveldb in order to test something in a different storage layer. In addition add a Compact() method to the db interface.
Configuration menu - View commit details
-
Copy full SHA for 6d45964 - Browse repository at this point
Copy the full SHA 6d45964View commit details -
arbo: fix the clean up of nodes after delete/update/add
Remove all intermediate nodes from the database once they are not necessary anymore. Break up the code into smaller Go files.
Configuration menu - View commit details
-
Copy full SHA for d0d27ed - Browse repository at this point
Copy the full SHA d0d27edView commit details -
arbo: reorder neighbour nodes on delete
When a leaf of the tree is removed, if the neighbour child is not empty, it should be moved to the upper level where there are no other leaves. Add tests to verify the operation.
Configuration menu - View commit details
-
Copy full SHA for 317f1bb - Browse repository at this point
Copy the full SHA 317f1bbView commit details -
arbo: add RootsFromLevel() method
Since we do not hold old intermediate nodes anymore, SetRoot(), Snapshot(), Dump() and so on require to have an existing current intermediate node (or nil to use the current root). To this end we introduce a new method to facilitate retrieve the list of existing roots from a level.
Configuration menu - View commit details
-
Copy full SHA for d7807bd - Browse repository at this point
Copy the full SHA d7807bdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1695f3d - Browse repository at this point
Copy the full SHA 1695f3dView commit details -
final fixes after arbo refactor
The main issue was that on update, if the key and value are the same, the clean up routine for removing old intermediate nodes, was removing the current valid intermediate nodes up to the root. In addition adapt some tests to become compatible with the new impl. And remove some that are not longer valid.
Configuration menu - View commit details
-
Copy full SHA for d2f2e60 - Browse repository at this point
Copy the full SHA d2f2e60View commit details -
Configuration menu - View commit details
-
Copy full SHA for bb970dd - Browse repository at this point
Copy the full SHA bb970ddView commit details -
Configuration menu - View commit details
-
Copy full SHA for 960d9f3 - Browse repository at this point
Copy the full SHA 960d9f3View commit details
Commits on Sep 4, 2023
-
arbo: add a test and benchmark for comparing Add and AddBatch
Ensure we produce the same root using both methods. Also update the dev genesis file.
Configuration menu - View commit details
-
Copy full SHA for 753fe1f - Browse repository at this point
Copy the full SHA 753fe1fView commit details