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

fix: allow relaying based on first block #18

Merged
merged 25 commits into from
Apr 24, 2024
Merged

Conversation

danwt
Copy link

@danwt danwt commented Apr 24, 2024

Old behavior:

The chain processor will only send block info to the path processor if the block is a 'new' block. It has the assumption that new blocks come frequently, so it does not consider the first block (highest at start time) a new block.

New behavior:

The chain processor will only send block info to the path processor if the block is a 'new' block. The first block is considered a new block.

Extra:

  • improves error visibility in processing messages
  • adds more debug logs
  • removes old patch (8b8e582)

var p processor.ChainProcessor
if 0 < len(paths) && chainID == paths[0].Path.Src.ChainID {
// Rollapp
threshold := 2 // same as default, TODO(danwt): configure if necessary
Copy link
Author

Choose a reason for hiding this comment

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

I suggest we keep this in for now
can always remove later if not needed

@danwt danwt marked this pull request as draft April 24, 2024 11:26
@danwt danwt marked this pull request as ready for review April 24, 2024 14:29
@danwt danwt requested a review from omritoptix April 24, 2024 14:29
@danwt
Copy link
Author

danwt commented Apr 24, 2024

I just pushed a simplification and I think I regressed it, gonna fix

@omritoptix omritoptix merged commit 642d476 into main-dym Apr 24, 2024
17 checks passed
@omritoptix omritoptix linked an issue May 6, 2024 that may be closed by this pull request
@danwt danwt deleted the danwt/v2.5.2-fork branch June 5, 2024 11:35
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.

hub->rollapp packets are not relayed by the flush mechanism
2 participants