Skip to content

Conversation

ferranbt
Copy link
Contributor

📝 Summary

Closes #82 and #84

For #84, there is already a metric in Reth 1.4.4 that exposes the same metric. We will remove it once we merge that version of Reth.

// Fixed in https://github.com/paradigmxyz/reth/pull/16514
self.metrics
.da_block_size_limit
.record(block_da_limit.map_or(0.0, |v| v as f64));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.record(block_da_limit.map_or(0.0, |v| v as f64));
.record(block_da_limit.map_or(-1.0, |v| v as f64));

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So we could differentiate between 0 and unlimited

.record(block_da_limit.map_or(0.0, |v| v as f64));
self.metrics
.da_tx_size_limit
.record(tx_da_limit.map_or(0.0, |v| v as f64));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.record(tx_da_limit.map_or(0.0, |v| v as f64));
.record(tx_da_limit.map_or(-1.0, |v| v as f64));

@ferranbt ferranbt merged commit 95accfe into main May 30, 2025
2 checks passed
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.

Add a log at the beginning of block building with the DA gas limit/tx limit

2 participants