Skip to content

Conversation

radhe-zeeve
Copy link
Contributor

Issue

While syncing the data into the database for different transactions, the data availability service listen to events of type SequenceBatches coming out of Supernets2 smart contract deployed on L1. The transaction hashes (within the batches) it looks to sync cannot be part of the data field within the log event. This is because this information can be only be within transaction input data (not event data).

Solution

By knowing the transaction id of L1 from the event, we are performing the GetTx to get transaction details from the L1 and decoding transaction inputs we are able to fetch the batches of transaction ID's of layer 2 in order to allow syncing to continue.

Copy link
Contributor

@christophercampbell christophercampbell left a comment

Choose a reason for hiding this comment

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

Good catch

@christophercampbell christophercampbell merged commit 0812ae5 into 0xPolygon:main Aug 21, 2023
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