-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Further refactor adapter handling, BlockStream, BlockIngestor #4411
Conversation
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.
My main concern with this PR is that it changes some connection errors during startup into panics. We've had situations where it was not possible to start the block ingestor for all chains successfully, and we should make sure that that continues to work even if some chain clients have lost their mind.
node/src/main.rs
Outdated
.collect(), | ||
) | ||
} | ||
fn chains_to_ingestor( |
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.
This function seems to not be used, no idea why rustc
doesn't spot that
node/src/main.rs
Outdated
$acc.push(ingestor); | ||
} | ||
Err(err) => error!(&logger, | ||
"Failed to create block ingestor for network {}",err), |
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.
Better wording: "Failed to create block ingestor: {}", err
- Move BlockIngestor init done by Blockchain trait - BlockIngestor is now a trait - BlockStream init now done by Blockchain trait - Adapter not sticky on BlockIngestor and BlockStream
Closes:
#4415
#4416