This commit is contained in:
Sergio Chouhy 2025-10-27 16:04:12 -03:00
parent 7f075fcdd3
commit 1ad93c2977
2 changed files with 11 additions and 6 deletions

View File

@ -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

View File

@ -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 }
}
}