Skip to content

Commit eaa3061

Browse files
authored
Merge branch 'main' into marko/precompile_proposer
2 parents 382fa0f + 0e613d1 commit eaa3061

5 files changed

Lines changed: 17 additions & 17 deletions

File tree

crates/ev-precompiles/src/mint.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144,16 +144,16 @@ impl MintPrecompile {
144144
caller: Address,
145145
) -> MintPrecompileResult<()> {
146146
if caller == self.admin {
147-
tracing::debug!(target: "mint_precompile", ?caller, "authorization granted: admin");
147+
tracing::debug!(target: "mint_precompile", %caller, "authorization granted: admin");
148148
return Ok(());
149149
}
150150

151151
let allowlisted = Self::is_allowlisted(internals, caller)?;
152152
if allowlisted {
153-
tracing::debug!(target: "mint_precompile", ?caller, "authorization granted: allowlist");
153+
tracing::debug!(target: "mint_precompile", %caller, "authorization granted: allowlist");
154154
Ok(())
155155
} else {
156-
tracing::warn!(target: "mint_precompile", ?caller, "authorization denied: not admin and not allowlisted");
156+
tracing::warn!(target: "mint_precompile", %caller, "authorization denied: not admin and not allowlisted");
157157
Err(MintPrecompileError::halt_static("unauthorized caller"))
158158
}
159159
}
@@ -171,7 +171,7 @@ impl MintPrecompile {
171171
let allowlisted = !raw_value.is_zero();
172172
tracing::debug!(
173173
target: "mint_precompile",
174-
?addr,
174+
%addr,
175175
slot = %key,
176176
value = %raw_value,
177177
allowlisted,
@@ -215,7 +215,7 @@ impl Precompile for MintPrecompile {
215215

216216
tracing::info!(
217217
target: "mint_precompile",
218-
?caller,
218+
%caller,
219219
gas = gas_limit,
220220
calldata_len = data_len,
221221
"mint precompile call invoked"

crates/node/src/builder.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ where
5252
if let Some((sink, activation)) = config.base_fee_redirect_settings() {
5353
info!(
5454
target: "ev-reth",
55-
fee_sink = ?sink,
55+
fee_sink = %sink,
5656
activation_height = activation,
5757
"Base fee redirect enabled via chainspec"
5858
);
@@ -69,7 +69,7 @@ where
6969
#[instrument(skip(self, attributes), fields(
7070
parent_hash = %attributes.parent_hash,
7171
tx_count = attributes.transactions.len(),
72-
gas_limit = ?attributes.gas_limit,
72+
gas_limit = attributes.gas_limit.unwrap_or(0),
7373
duration_ms = tracing::field::Empty,
7474
))]
7575
pub async fn build_payload(
@@ -118,7 +118,7 @@ where
118118
suggested_fee_recipient = sink;
119119
info!(
120120
target: "ev-reth",
121-
fee_sink = ?sink,
121+
fee_sink = %sink,
122122
block_number,
123123
"Suggested fee recipient missing; defaulting to base-fee sink"
124124
);
@@ -173,7 +173,7 @@ where
173173
debug!(gas_used = ?gas_used, "transaction executed successfully");
174174
}
175175
Err(err) => {
176-
tracing::warn!(error = ?err, tx_hash = %tx.tx_hash(), "transaction execution failed");
176+
tracing::warn!(error = %err, tx_hash = %tx.tx_hash(), "transaction execution failed");
177177
}
178178
}
179179
}
@@ -192,7 +192,7 @@ where
192192

193193
info!(
194194
block_number = sealed_block.number,
195-
block_hash = ?sealed_block.hash(),
195+
block_hash = %sealed_block.hash(),
196196
tx_count = sealed_block.transaction_count(),
197197
gas_used = sealed_block.gas_used,
198198
"built block"
@@ -221,13 +221,13 @@ where
221221
let config = match EvolvePayloadBuilderConfig::from_chain_spec(&chain_spec) {
222222
Ok(config) => config,
223223
Err(err) => {
224-
tracing::warn!(target: "ev-reth", error = ?err, "Failed to parse chainspec extras");
224+
tracing::warn!(target: "ev-reth", error = %err, "Failed to parse chainspec extras");
225225
return None;
226226
}
227227
};
228228

229229
if let Err(err) = config.validate() {
230-
tracing::warn!(target: "ev-reth", error = ?err, "Invalid evolve payload builder configuration");
230+
tracing::warn!(target: "ev-reth", error = %err, "Invalid evolve payload builder configuration");
231231
return None;
232232
}
233233

crates/node/src/executor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ where
411411
.map(|(sink, activation)| {
412412
info!(
413413
target = "ev-reth::executor",
414-
fee_sink = ?sink,
414+
fee_sink = %sink,
415415
activation_height = activation,
416416
"Base fee redirect enabled"
417417
);

crates/node/src/payload_service.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ impl EvolvePayloadBuilderBuilder {
4545
/// Create a new builder with evolve args.
4646
pub fn new() -> Self {
4747
let config = EvolvePayloadBuilderConfig::new();
48-
info!("Created Evolve payload builder with config: {:?}", config);
48+
info!("created evolve payload builder");
4949
Self { config }
5050
}
5151
}
@@ -148,7 +148,7 @@ where
148148
if let Some(sink) = self.config.base_fee_sink_for_block(block_number) {
149149
info!(
150150
target: "ev-reth",
151-
fee_sink = ?sink,
151+
fee_sink = %sink,
152152
block_number,
153153
"Suggested fee recipient missing; defaulting to base-fee sink"
154154
);

crates/node/src/validator.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ impl PayloadValidator<EvolveEngineTypes> for EvolveEngineValidator {
8080
.map_err(|e| NewPayloadError::Other(e.into()))
8181
}
8282
Err(err) => {
83-
debug!(error = ?err, "payload validation error");
83+
debug!(error = %err, "payload validation error");
8484

8585
// Check if this is an error we can bypass for evolve:
8686
// 1. BlockHash mismatch - ev-reth computes different hash due to custom tx types
@@ -96,7 +96,7 @@ impl PayloadValidator<EvolveEngineTypes> for EvolveEngineValidator {
9696
|| is_unknown_tx_type_error(&err);
9797

9898
if should_bypass {
99-
info!(error = ?err, "bypassing validation error for ev-reth");
99+
info!(error = %err, "bypassing validation error for ev-reth");
100100
// For evolve, we trust the payload builder - parse the block with EvNode support.
101101
let ev_block = parse_evolve_payload(payload)?;
102102
Span::current().record("block_hash", tracing::field::display(ev_block.hash()));

0 commit comments

Comments
 (0)