Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
maciejka committed Aug 1, 2024
1 parent 92a7b62 commit bf58b29
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/state.cairo
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


// https://developer.bitcoin.org/reference/block_chain.html#block-headers
#[derive(Drop, Clone)]
struct Header {
Expand Down Expand Up @@ -51,9 +49,9 @@ pub struct ChainState {
pub current_target: u32,
pub epoch_start_time: u32,
pub prev_timestamps: Span<u32>,
// TODO: utreexo_roots?
// TODO: utreexo_roots?
}

trait BlockValidator {
fn validate_and_apply(block: Block) -> Result<ChainState, ByteArray>;
}
}

0 comments on commit bf58b29

Please sign in to comment.