mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: alloy 0.4 (#11334)
This commit is contained in:
@ -101,8 +101,7 @@ impl Command {
|
||||
)
|
||||
.await?;
|
||||
|
||||
let new_payload_result =
|
||||
NewPayloadResult { gas_used: gas_used as u64, latency: start.elapsed() };
|
||||
let new_payload_result = NewPayloadResult { gas_used, latency: start.elapsed() };
|
||||
|
||||
call_forkchoice_updated(&auth_provider, message_version, forkchoice_state, None)
|
||||
.await?;
|
||||
@ -120,8 +119,7 @@ impl Command {
|
||||
info!(%combined_result);
|
||||
|
||||
// record the current result
|
||||
let gas_row =
|
||||
TotalGasRow { block_number, gas_used: gas_used as u64, time: current_duration };
|
||||
let gas_row = TotalGasRow { block_number, gas_used, time: current_duration };
|
||||
results.push((gas_row, combined_result));
|
||||
}
|
||||
|
||||
|
||||
@ -78,16 +78,14 @@ impl Command {
|
||||
call_new_payload(&auth_provider, payload, parent_beacon_block_root, versioned_hashes)
|
||||
.await?;
|
||||
|
||||
let new_payload_result =
|
||||
NewPayloadResult { gas_used: gas_used as u64, latency: start.elapsed() };
|
||||
let new_payload_result = NewPayloadResult { gas_used, 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: gas_used as u64, time: current_duration };
|
||||
let row = TotalGasRow { block_number, gas_used, time: current_duration };
|
||||
results.push((row, new_payload_result));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user