Skip to content

Save external offchain transactions in optimist #641

New issue

Have a question about this project? Sign up for a free account to open an issue and contact its maintainers and the community.

By clicking “Sign up for ”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on ? Sign in to your account

Merged
merged 2 commits into from
May 6, 2022

Conversation

Westlad
Copy link
Contributor

@Westlad Westlad commented May 6, 2022

This PR will cause any transactions that appear in a L2 block which optimist has not got in its database, to be saved.
This can happen when optimist is being resynced because the process only saves transactions that are received as part of a TransactionSubmitted event; offchain events do not create these.

I have not yet created a positive test for this code. This will follow.

@IlyasRidhuanIlyasRidhuan self-requested a review May 6, 2022 16:13
@IlyasRidhuanIlyasRidhuan merged commit ee77adc into master May 6, 2022
@IlyasRidhuanIlyasRidhuan deleted the westlad/resync-offchain branch May 6, 2022 16:19
Sign up for free to join this conversation on . Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants