From feadd82e2e399137160a7964b94e06898ca96652 Mon Sep 17 00:00:00 2001 From: tbro <tbro@users.noreply.github.com> Date: Mon, 3 Jun 2024 16:54:27 -0400 Subject: [PATCH] cleanup, doc comments --- sequencer/src/state.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/sequencer/src/state.rs b/sequencer/src/state.rs index ea0d7de93..028258fe4 100644 --- a/sequencer/src/state.rs +++ b/sequencer/src/state.rs @@ -1,9 +1,6 @@ use crate::{ - api::data_source::CatchupDataSource, - catchup::SqlStateCatchup, - chain_config::{BlockSize, ResolvableChainConfig}, - eth_signature_key::EthKeyPair, - ChainConfig, Header, Leaf, NodeState, SeqTypes, + api::data_source::CatchupDataSource, catchup::SqlStateCatchup, chain_config::BlockSize, + eth_signature_key::EthKeyPair, ChainConfig, Header, Leaf, NodeState, SeqTypes, }; use anyhow::{anyhow, bail, ensure, Context}; use ark_serialize::{ @@ -214,9 +211,10 @@ impl ValidatedState { } } +/// Error type to cover possible proposal validation failures #[derive(Error, Debug, Eq, PartialEq)] pub enum ProposalValidationError { - #[error("Invalid ChainConfig: (expected={expected:?}, proposal={proposal:?})")] + #[error("Invalid ChainConfig: expected={expected:?}, proposal={proposal:?}")] InvalidChainConfig { expected: String, proposal: String }, #[error( @@ -328,6 +326,7 @@ fn charge_fee( Ok(()) } +/// Error type to cover possible builder validation failures #[derive(Error, Debug, Eq, PartialEq)] pub enum BuilderValidationError { #[error("Builder signature not found")]