Skip to content

Commit

Permalink
fix(rooch-pipeline-processor): reverse txs in processor startup execu…
Browse files Browse the repository at this point in the history
…tion (#2843)

Reverse the transactions to maintain their order during startup processing.
This ensures the correct sequence is preserved, preventing potential issues.
  • Loading branch information
popcnt1 authored Nov 1, 2024
1 parent 9b3ac53 commit dfc0930
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/rooch-pipeline-processor/src/actor/processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ impl PipelineProcessorActor {
txs
);

for tx_hash in txs.into_iter() {
for tx_hash in txs.into_iter().rev() {
// reverse the txs to keep the order
let ledger_tx = self
.sequencer
.get_transaction_by_hash(tx_hash)
Expand Down

0 comments on commit dfc0930

Please sign in to comment.