Skip to content

Commit

Permalink
fix: current block number should be -1 if not start
Browse files Browse the repository at this point in the history
  • Loading branch information
classicalliu committed Nov 13, 2019
1 parent dc82cbb commit 543cdd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/neuron-wallet/src/services/sync/block-number.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default class BlockNumber {
const blockNumberEntity: SyncInfoEntity | undefined = await this.blockNumber()

if (!blockNumberEntity) {
return BigInt(0)
return BigInt(-1)
}

return BigInt(blockNumberEntity.value)
Expand Down

0 comments on commit 543cdd0

Please sign in to comment.