Skip to content

Commit

Permalink
fix: load init txs in windows
Browse files Browse the repository at this point in the history
  • Loading branch information
classicalliu committed Nov 11, 2019
1 parent 2d6283d commit 8880d34
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/neuron-wallet/src/startup/sync-block-task/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import env from 'env'
import AddressService from 'services/addresses'
import genesisBlockHash from './genesis'
import InitDatabase from './init-database'
import DataUpdateSubject from 'models/subjects/data-update'

export { genesisBlockHash }

Expand All @@ -30,6 +31,11 @@ networkSwitchSubject.subscribe(async (network: NetworkWithID | undefined) => {
await InitDatabase.getInstance().stopAndWait()
const info = await InitDatabase.getInstance().init(network.remote)

DataUpdateSubject.next({
dataType: 'transaction',
actionType: 'update',
})

if (info !== 'killed') {
const databaseInitParams: DatabaseInitParams = {
network,
Expand Down

0 comments on commit 8880d34

Please sign in to comment.