Skip to content

Stale length check for batch#791

Open
supersuryaansh wants to merge 1 commit intomainfrom
STALE_LENGTH_CHECK_TEST
Open

Stale length check for batch#791
supersuryaansh wants to merge 1 commit intomainfrom
STALE_LENGTH_CHECK_TEST

Conversation

@supersuryaansh
Copy link
Copy Markdown
Member

Test for a race condition in verification for new messages on mobile.

When we read the head and derive the length from it, and before we call MerkleTree.verifyFullyRemote, storage can be updated by another concurrent notification arriving.

So by the time we verify the batch length against the head length, the length becomes stale.

Info: AI help was used during debugging

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.

1 participant