Skip to content

Commit 06b030e

Browse files
committed
fix: set restart start number to -1
1 parent 54eda3a commit 06b030e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export default class IndexerQueue {
8787
try {
8888
this.inProcess = true
8989
if (this.resetFlag) {
90-
await this.blockNumberService.updateCurrent(BigInt(0))
90+
await this.blockNumberService.updateCurrent(BigInt(-1))
9191
this.resetFlag = false
9292
}
9393
const { lockHashInfos } = this

packages/neuron-wallet/src/services/sync/block-listener.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export default class BlockListener {
5050
// start listening
5151
public start = async (restart: boolean = false) => {
5252
if (restart) {
53-
await this.currentBlockNumber.updateCurrent(BigInt(0))
53+
await this.currentBlockNumber.updateCurrent(BigInt(-1))
5454
}
5555

5656
try {

0 commit comments

Comments
 (0)