Skip to content
This repository has been archived by the owner on Oct 5, 2022. It is now read-only.

Commit

Permalink
Use the new core version to sync transactions in chunks to avoid time…
Browse files Browse the repository at this point in the history
…outs
  • Loading branch information
gndelia committed Jun 28, 2021
1 parent 754effd commit 8af98f2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/client/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@ const startCore = ({ chain, core, config: coreConfig }, store) => {
.getSyncBlock(chain)
.then(from => {
emitter.emit('transactions-scan-started')
return coreApi.explorer.syncTransactions(from, address)
return coreApi.explorer.syncTransactions(from, address, number => storage.setSyncBlock(number, chain))
})
.then(number => storage.setSyncBlock(number, chain))
.then(() => {
emitter.emit('transactions-scan-finished', { success: true })
emitter.on('coin-block', function({ number }) {
Expand Down

0 comments on commit 8af98f2

Please sign in to comment.