mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-02 13:23:10 +00:00
fmt
This commit is contained in:
parent
7f075fcdd3
commit
1ad93c2977
@ -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
|
||||
|
||||
@ -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 }
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user