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