Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nervosnetwork/neuron
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: ff75cdc76ae50b928026775048b25f0f3068cbbc
Choose a base ref
..
head repository: nervosnetwork/neuron
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 4d820dbed46e8df6e11d0fe7626e97089dcc7efa
Choose a head ref
Showing with 2 additions and 2 deletions.
  1. +1 −1 packages/neuron-wallet/src/block-sync-renderer/sync/light-synchronizer.ts
  2. +1 −1 packages/neuron-wallet/src/services/sync-progress.ts
Original file line number Diff line number Diff line change
@@ -354,7 +354,7 @@ export default class LightSynchronizer extends Synchronizer {
txHashesInNextBlock.length &&
// For light client, if tx hash has been called with fetch_transaction, the tx can not return by get_transactions
// So before derived address synced to bigger than next synced block number, do not sync the next block number
minSyncBlockNumber >= parseInt(nextBlockNumber) &&
(minSyncBlockNumber === undefined || minSyncBlockNumber >= parseInt(nextBlockNumber)) &&
// check whether the tx is sync from light client, after split the light client and full DB file, this check will remove
(await this.checkTxExist(txHashesInNextBlock))
) {
2 changes: 1 addition & 1 deletion packages/neuron-wallet/src/services/sync-progress.ts
Original file line number Diff line number Diff line change
@@ -115,7 +115,7 @@ export default class SyncProgressService {
})
.orderBy('syncedBlockNumber', 'ASC')
.getOne()
return item?.syncedBlockNumber || 0
return item?.syncedBlockNumber
}

static async getWalletMinLocalSavedBlockNumber() {