Skip to content

Commit

Permalink
fix: If all of the previous Tx hashes are cell base, skip fetch tx.
Browse files Browse the repository at this point in the history
  • Loading branch information
yanguoyu committed Apr 15, 2024
1 parent 5fe467e commit 716cbdf
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ export default class LightSynchronizer extends Synchronizer {
previousTxHashes.add(previousTxHash)
}
})
if (!previousTxHashes.size) return
await this.lightRpc.createBatchRequest([...previousTxHashes].map(v => ['fetchTransaction' as keyof Base, v])).exec()
}

Expand Down

1 comment on commit 716cbdf

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Packaging for test is done in 8681936550

Please sign in to comment.