Skip to content

Commit

Permalink
cleanup, doc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tbro committed Jun 3, 2024
1 parent b94793a commit feadd82
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions sequencer/src/state.rs
Original file line number Diff line number Diff line change
@@ -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::{
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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")]
Expand Down

0 comments on commit feadd82

Please sign in to comment.