Skip to content
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

Fix: Syncing #25

Merged
merged 12 commits into from
Nov 3, 2023
Merged

Fix: Syncing #25

merged 12 commits into from
Nov 3, 2023

Conversation

0xKitsune
Copy link
Contributor

Fixed syncing logic to ignore padded values.

@0xKitsune 0xKitsune marked this pull request as ready for review November 1, 2023 03:49
@@ -6,5 +6,7 @@ abigen!(
event TreeChanged(uint256 indexed preRoot, uint8 indexed kind, uint256 indexed postRoot)
function registerIdentities(uint256[8] calldata insertionProof, uint256 preRoot, uint32 startIndex, uint256[] calldata identityCommitments, uint256 postRoot) external
function deleteIdentities(uint256[8] calldata deletionProof, bytes calldata packedDeletionIndices, uint256 preRoot, uint256 postRoot) external
function deleteIdentities(uint256[8] calldata deletionProof, uint32 batchSize, bytes calldata packedDeletionIndices, uint256 preRoot, uint256 postRoot) external
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kinda sucks for staging but on prod we won't have this at all. Maybe we should instead allow manually adding some events via some config file at specific blocks?

So for staging we could manually add the deletions with batchSize - but it could also prove useful for testing imo.

@0xKitsune 0xKitsune merged commit 2c8df91 into 0xkitsune/tracing Nov 3, 2023
@0xKitsune 0xKitsune deleted the 0xkitsune/syncing branch November 3, 2023 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants