Skip to content

Log GetPayload events during block building #16195

Closed
@ferranbt

Description

@ferranbt

Describe the feature

This is an example of the Reth logs at the time of block building

2025-05-13T13:38:49.661049Z DEBUG provider::static_file: Commit segment=Headers path="/root/.local/share/reth/901/static_files/static_file_headers_0_499999" duration=3.712541ms
2025-05-13T13:38:49.661947Z DEBUG engine::tree: received new engine message msg=Request(ForkchoiceUpdated { state: ForkchoiceState { head_block_hash: 0xf5f34b79288aab1b07d05799cbc69b97b61d9751bf2ba85456bbc458e08eff23, safe_block_hash: 0xf5f34b79288aab1b07d05799cbc69b97b61d9751bf2ba85456bbc458e08eff23, finalized_block_hash: 0xf5f34b79288aab1b07d05799cbc69b97b61d9751bf2ba85456bbc458e08eff23 }, has_payload_attributes: true })
2025-05-13T13:38:49.662137Z  INFO reth_payload_builder::service: New payload job created id=0x03899bddc6660b56 parent=0xf5f34b79288aab1b07d05799cbc69b97b61d9751bf2ba85456bbc458e08eff23
2025-05-13T13:38:49.662142Z DEBUG reth::cli: Event: Handler(ForkchoiceUpdated(ForkchoiceState { head_block_hash: 0xf5f34b79288aab1b07d05799cbc69b97b61d9751bf2ba85456bbc458e08eff23, safe_block_hash: 0xf5f34b79288aab1b07d05799cbc69b97b61d9751bf2ba85456bbc458e08eff23, finalized_block_hash: 0xf5f34b79288aab1b07d05799cbc69b97b61d9751bf2ba85456bbc458e08eff23 }, Valid))
2025-05-13T13:38:49.662184Z  INFO reth_node_events::node: Forkchoice updated head_block_hash=0xf5f34b79288aab1b07d05799cbc69b97b61d9751bf2ba85456bbc458e08eff23 safe_block_hash=0xf5f34b79288aab1b07d05799cbc69b97b61d9751bf2ba85456bbc458e08eff23 finalized_block_hash=0xf5f34b79288aab1b07d05799cbc69b97b61d9751bf2ba85456bbc458e08eff23
2025-05-13T13:38:49.662243Z DEBUG payload_builder: building new payload id=0x03899bddc6660b56 parent_header=0xf5f34b79288aab1b07d05799cbc69b97b61d9751bf2ba85456bbc458e08eff23 parent_number=5

It logs things like the start of the block building routine New payload job created or when the FCU gets updated Forkchoice updated .... My feature request is for Reth to log also the GetPayload call from the builder.

Metadata

Metadata

Assignees

Labels

C-enhancementNew feature or requestD-good-first-issueNice and easy! A great choice to get started

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions