Skip to content

Commit abdc01f

Browse files
committed
fix: fetch size
1 parent 85cb6a4 commit abdc01f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/neuron-wallet/src/services/sync

packages/neuron-wallet/src/services/sync/queue.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export default class Queue {
5050
this.inProcess = true
5151
const current: bigint = await this.currentBlockNumber.getCurrent()
5252
const startNumber: bigint = current + BigInt(1)
53-
const endNumber: bigint = current + BigInt(this.fetchSize) - BigInt(1)
53+
const endNumber: bigint = current + BigInt(this.fetchSize)
5454
const realEndNumber: bigint = endNumber < this.endBlockNumber ? endNumber : this.endBlockNumber
5555

5656
if (realEndNumber >= startNumber) {

0 commit comments

Comments
 (0)