-
Notifications
You must be signed in to change notification settings - Fork 785
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
Log block import source #5738
Log block import source #5738
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.
Thank you for implementing this!
@@ -3048,6 +3055,7 @@ impl<T: BeaconChainTypes> BeaconChain<T> { | |||
"Beacon block imported"; | |||
"block_root" => ?block_root, | |||
"block_slot" => block_slot, | |||
"source" => block_source.to_string(), |
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.
You should able to do this if you implement display
"source" => %block_source,
@mergify queue |
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at 6636167 |
Issue Addressed
Closes #5721
Proposed Changes
Add a source tag to block import logs to indicate where the imported block came from. Options are Lookup, Gossip, RangeSync and HttpApi