-
Notifications
You must be signed in to change notification settings - Fork 5
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
Feature/agg oracle #23
Conversation
794e0dd
to
f6bf0ad
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally LGTM (and good job), but leaving some comments to consider.
sync/common.go
Outdated
) | ||
|
||
var ( | ||
RetryAfterErrorPeriod = time.Second * 10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe is better to be able to configure this values
if len(blocks) == 0 || blocks[len(blocks)-1].Num < l.BlockNumber { | ||
b := d.getBlockHeader(ctx, l.BlockNumber) | ||
blocks = append(blocks, EVMBlock{ | ||
EVMBlockHeader: EVMBlockHeader{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you creating an empty block?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if this block number is not yet added in the form of EVMBlock
into blocks
, we need to create it and prepare this new block so the appender
can append
events into it. Note that we only do this operation when there are relevant blocks, and the block is not yet added into blocks
Quality Gate failedFailed conditions |
* implementation completed, missing tests * WIP * WIP * WIP * sync refactor * decouple sync processors from EVM * Add CLI for aggOracle * WIP * wip * WIP * start reorg detector * fix docker * pass test with docker * add TODO * go mod tidy * Add PR review suggestions from Stefan-Ethernal * fix UTs * Add PR review suggestions from joanestebanr --------- Co-authored-by: Stefan Negovanović <[email protected]>
No description provided.