diff --git a/sequencer_core/src/lib.rs b/sequencer_core/src/lib.rs index 6bd10de..ac4fe72 100644 --- a/sequencer_core/src/lib.rs +++ b/sequencer_core/src/lib.rs @@ -80,11 +80,14 @@ impl SequencerCore { for encoded_transaction in block.body.transactions { let transaction = NSSATransaction::try_from(&encoded_transaction).unwrap(); let transaction = this.transaction_pre_check(transaction).unwrap(); - this.execute_check_transaction_on_state(transaction).unwrap(); - this.store.block_store.tx_hash_to_block_map.insert(encoded_transaction.hash(), block_id); - + this.execute_check_transaction_on_state(transaction) + .unwrap(); + this.store + .block_store + .tx_hash_to_block_map + .insert(encoded_transaction.hash(), block_id); } - block_id +=1; + block_id += 1; } this diff --git a/sequencer_core/src/sequencer_store/mod.rs b/sequencer_core/src/sequencer_store/mod.rs index f6ca478..1081960 100644 --- a/sequencer_core/src/sequencer_store/mod.rs +++ b/sequencer_core/src/sequencer_store/mod.rs @@ -1,7 +1,10 @@ use std::path::Path; use block_store::SequecerBlockStore; -use common::{block::HashableBlockData, transaction::{self, NSSATransaction}}; +use common::{ + block::HashableBlockData, + transaction::{self, NSSATransaction}, +}; use nssa::{self, Address}; use rand::{RngCore, rngs::OsRng}; @@ -57,7 +60,6 @@ impl SequecerChainStore { ) .unwrap(); - Self { state, block_store } } }