Skip to content

Commit 54390be

Browse files
committed
Log bid in gwei
1 parent 55e0b9e commit 54390be

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

beacon_node/execution_layer/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1667,7 +1667,8 @@ fn verify_builder_bid<T: EthSpec, Payload: ExecPayload<T>>(
16671667
let payload_value = bid.data.message.value;
16681668

16691669
// Avoid logging values that we can't represent with our Prometheus library.
1670-
if payload_value <= Uint256::from(i64::max_value()) {
1670+
let payload_value_gwei = bid.data.message.value / 1_000_000_000;
1671+
if payload_value_gwei <= Uint256::from(i64::max_value()) {
16711672
metrics::set_gauge_vec(
16721673
&metrics::EXECUTION_LAYER_PAYLOAD_BIDS,
16731674
&[metrics::BUILDER],

beacon_node/execution_layer/src/metrics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ lazy_static::lazy_static! {
7272
);
7373
pub static ref EXECUTION_LAYER_PAYLOAD_BIDS: Result<IntGaugeVec> = try_create_int_gauge_vec(
7474
"execution_layer_payload_bids",
75-
"The bid value of payloads received by local EEs or builders. Only shows values up to i64::max_value.",
75+
"The gwei bid value of payloads received by local EEs or builders. Only shows values up to i64::max_value.",
7676
&["source"]
7777
);
7878
}

0 commit comments

Comments
 (0)