Skip to content

Commit

Permalink
consensus-logic, sequencer: minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
delbonis committed Jul 25, 2024
1 parent 5594b49 commit 4e03a47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
8 changes: 3 additions & 5 deletions crates/consensus-logic/src/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,9 @@ fn handle_sync_event<D: Database, E: ExecEngineCtl>(
error!(%ev_idx, "failed to submit new CSM state to FCM");
}

let status = CsmStatus {
last_sync_ev_idx: ev_idx,
chain_tip_blkid: new_state.sync().map(|ss| *ss.chain_tip_blkid()),
finalized_blkid: new_state.sync().map(|ss| *ss.finalized_blkid()),
};
let mut status = CsmStatus::default();
status.set_last_sync_ev_idx(ev_idx);
status.update_from_client_state(new_state.as_ref());
if csm_status_tx.send(status).is_err() {
error!(%ev_idx, "failed to submit new CSM status update");
}
Expand Down
4 changes: 0 additions & 4 deletions sequencer/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,6 @@ fn main_inner(args: Args) -> anyhow::Result<()> {
warn!("network not set to regtest, ignoring");
}

// Create dataflow channels.
let (_cout_tx, _cout_rx) = mpsc::channel::<operation::ClientUpdateOutput>(64);
// TODO connect up these other channels

// Init engine controller.
let eng_ctl = alpen_vertex_evmctl::stub::StubController::new(time::Duration::from_millis(100));
let eng_ctl = Arc::new(eng_ctl);
Expand Down

0 comments on commit 4e03a47

Please sign in to comment.