Skip to content

Conversation

@LeoGuo621
Copy link

πŸ“ Summary

πŸ’‘ Motivation and Context


βœ… I have completed the following steps:

  • Run make lint
  • Run make test
  • Added tests (if applicable)

@LeoGuo621 LeoGuo621 marked this pull request as draft January 16, 2026 08:11
Comment on lines +115 to +128
// 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,
);
}
}

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

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

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" }

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?

Comment on lines +589 to +600
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,
);
}
}

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

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.

3 participants