Skip to content

Commit

Permalink
fix: fetch size
Browse files Browse the repository at this point in the history
  • Loading branch information
classicalliu committed Aug 8, 2019
1 parent 85cb6a4 commit abdc01f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/neuron-wallet/src/services/sync/queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default class Queue {
this.inProcess = true
const current: bigint = await this.currentBlockNumber.getCurrent()
const startNumber: bigint = current + BigInt(1)
const endNumber: bigint = current + BigInt(this.fetchSize) - BigInt(1)
const endNumber: bigint = current + BigInt(this.fetchSize)
const realEndNumber: bigint = endNumber < this.endBlockNumber ? endNumber : this.endBlockNumber

if (realEndNumber >= startNumber) {
Expand Down

0 comments on commit abdc01f

Please sign in to comment.