mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-02 13:23:10 +00:00
fix block id
This commit is contained in:
parent
1ad93c2977
commit
6b75609012
@ -73,10 +73,7 @@ impl SequencerCore {
|
||||
sequencer_config: config,
|
||||
};
|
||||
|
||||
loop {
|
||||
let Ok(block) = this.store.block_store.get_block_at_id(block_id) else {
|
||||
break;
|
||||
};
|
||||
while let Ok(block) = this.store.block_store.get_block_at_id(block_id) {
|
||||
for encoded_transaction in block.body.transactions {
|
||||
let transaction = NSSATransaction::try_from(&encoded_transaction).unwrap();
|
||||
let transaction = this.transaction_pre_check(transaction).unwrap();
|
||||
@ -87,6 +84,7 @@ impl SequencerCore {
|
||||
.tx_hash_to_block_map
|
||||
.insert(encoded_transaction.hash(), block_id);
|
||||
}
|
||||
this.chain_height = block_id;
|
||||
block_id += 1;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user