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

Sync Relayer from previous Ethereum block #384

Merged
merged 16 commits into from
Jun 1, 2021
Merged
Prev Previous commit
Next Next commit
call processFinalVerificationSuccessfulEvents
  • Loading branch information
denalimarsh committed Apr 30, 2021
commit c818f39a45ca4e4adf2145447fda18ff195af3fe
4 changes: 2 additions & 2 deletions relayer/workers/beefyrelayer/beefy-ethereum-listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func (li *BeefyEthereumListener) pollEventsAndHeaders(ctx context.Context, desce

li.processInitialVerificationSuccessfulEvents(ctx, blockNumber)
li.forwardWitnessedBeefyCommitment(ctx, blockNumber, descendantsUntilFinal)
li.processInitialVerificationSuccessfulEvents(ctx, blockNumber)
li.processFinalVerificationSuccessfulEvents(ctx, blockNumber)
}
}
}
Expand Down Expand Up @@ -290,7 +290,7 @@ func (li *BeefyEthereumListener) processHistoricalFinalVerificationSuccessfulEve

// Attempt to match items in database based on their payload
itemFoundInDatabase := false
items := li.beefyDB.GetItemsByStatus(store.InitialVerificationTxConfirmed) // TODO: list of statuses
items := li.beefyDB.GetItemsByStatus(store.InitialVerificationTxConfirmed)
for _, item := range items {
denalimarsh marked this conversation as resolved.
Show resolved Hide resolved
generatedPayload := li.simulatePayloadGeneration(*item)
if generatedPayload == validationData.Payload {
Expand Down