Skip to content

Commit

Permalink
chore: fmt + clenaup
Browse files Browse the repository at this point in the history
  • Loading branch information
0xOsiris committed Oct 26, 2024
1 parent 7b04e3d commit deacb4b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 5 additions & 1 deletion bin/reth/src/commands/debug_cmd/replay_engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,11 @@ impl<C: ChainSpecParser<ChainSpec = ChainSpec>> Command<C> {
match message {
StoredEngineApiMessage::ForkchoiceUpdated { state, payload_attrs } => {
let response = beacon_engine_handle
.fork_choice_updated(state, payload_attrs, EngineApiMessageVersion::default())
.fork_choice_updated(
state,
payload_attrs,
EngineApiMessageVersion::default(),
)
.await?;
debug!(target: "reth::cli", ?response, "Received for forkchoice updated");
}
Expand Down
4 changes: 3 additions & 1 deletion crates/consensus/beacon/src/engine/test_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ impl<DB> TestEnv<DB> {
&self,
state: ForkchoiceState,
) -> Result<ForkchoiceUpdated, BeaconForkChoiceUpdateError> {
self.engine_handle.fork_choice_updated(state, None, EngineApiMessageVersion::default()).await
self.engine_handle
.fork_choice_updated(state, None, EngineApiMessageVersion::default())
.await
}

/// Sends the `ForkchoiceUpdated` message to the consensus engine and retries if the engine
Expand Down
2 changes: 1 addition & 1 deletion crates/engine/util/src/reorg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ where
state: reorg_forkchoice_state,
payload_attrs: None,
tx: reorg_fcu_tx,
version: EngineApiMessageVersion::V4,
version: EngineApiMessageVersion::default(),
},
]);
*this.state = EngineReorgState::Reorg { queue };
Expand Down

0 comments on commit deacb4b

Please sign in to comment.