-
Notifications
You must be signed in to change notification settings - Fork 1
support full trace log #55
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
base: main
Are you sure you want to change the base?
Conversation
| // Log block send start | ||
| { | ||
| use reth_monitor::{get_global_tracer, TransactionProcessId}; | ||
| use alloy_primitives::B256; | ||
| let block_hash = payload.block().hash(); | ||
| let block_number = payload.block().header().number; | ||
| if let Some(tracer) = get_global_tracer() { | ||
| tracer.log_block( | ||
| B256::from(*block_hash), | ||
| block_number, | ||
| TransactionProcessId::SeqBlockSendStart, | ||
| ); | ||
| } | ||
| } |
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.
Remove this. This is unnecessary because you can add this log directly inside the reth repo instead, since this message will be handled on the engine state tree handler
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.
Standard payload builders are not used and can completely be removed
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.
Standard payload builders are not used and can completely be removed
|
|
||
| # reth-monitor for transaction and block monitoring | ||
| # Note: Initialization is done in xlayer-reth, op-rbuilder only uses get_global_tracer() | ||
| reth-monitor = { git = "https://github.com/okx/reth", branch = "leo/support-full-trace" } |
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 specify the patch version here?
| if let Some(payload) = resolve_payload.get() { | ||
| use reth_monitor::{get_global_tracer, TransactionProcessId}; | ||
| let block_hash = payload.block().hash(); | ||
| let block_number = payload.block().header().number; | ||
| if let Some(tracer) = get_global_tracer() { | ||
| tracer.log_block( | ||
| B256::from(*block_hash), | ||
| block_number, | ||
| TransactionProcessId::SeqBlockBuildEnd, | ||
| ); | ||
| } | ||
| } |
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 is incorrect. We should add this inside the resolve_best_payload function, after resolve_payload.set(payload) is set
π Summary
π‘ Motivation and Context
β I have completed the following steps:
make lintmake test