primitives: use alloy Header struct (#10691)

This commit is contained in:
Thomas Coratger
2024-09-23 14:53:43 +02:00
committed by GitHub
parent 7529d36515
commit ed1de8996d
85 changed files with 826 additions and 991 deletions

View File

@ -100,7 +100,8 @@ impl Command {
)
.await?;
let new_payload_result = NewPayloadResult { gas_used, latency: start.elapsed() };
let new_payload_result =
NewPayloadResult { gas_used: gas_used as u64, latency: start.elapsed() };
call_forkchoice_updated(&auth_provider, message_version, forkchoice_state, None)
.await?;
@ -118,7 +119,8 @@ impl Command {
info!(%combined_result);
// record the current result
let gas_row = TotalGasRow { block_number, gas_used, time: current_duration };
let gas_row =
TotalGasRow { block_number, gas_used: gas_used as u64, time: current_duration };
results.push((gas_row, combined_result));
}

View File

@ -77,14 +77,16 @@ impl Command {
call_new_payload(&auth_provider, payload, parent_beacon_block_root, versioned_hashes)
.await?;
let new_payload_result = NewPayloadResult { gas_used, latency: start.elapsed() };
let new_payload_result =
NewPayloadResult { gas_used: gas_used as u64, latency: start.elapsed() };
info!(%new_payload_result);
// current duration since the start of the benchmark
let current_duration = total_benchmark_duration.elapsed();
// record the current result
let row = TotalGasRow { block_number, gas_used, time: current_duration };
let row =
TotalGasRow { block_number, gas_used: gas_used as u64, time: current_duration };
results.push((row, new_payload_result));
}