Skip to content

Commit

Permalink
fix: the missing txs
Browse files Browse the repository at this point in the history
  • Loading branch information
classicalliu committed Nov 28, 2019
1 parent b102de5 commit ed557b6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,8 @@ export default class AddressCreatedSubject {
static getSubject() {
return this.subject
}

static setSubject(subject: ReplaySubject<Address[]>) {
this.subject = subject
}
}
5 changes: 4 additions & 1 deletion packages/neuron-wallet/src/startup/sync-block-task/task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@ import Utils from 'services/sync/utils'
import { switchNetwork as syncSwitchNetwork } from './sync'
import { switchNetwork as indexerSwitchNetwork } from './indexer'
import { DatabaseInitParams } from './create'
import AddressCreatedSubject from 'models/subjects/address-created-subject'

// register to listen address updates
registerAddressListener()

const { addressesUsedSubject, databaseInitSubject } = remote.require('./startup/sync-block-task/params')
const { addressesUsedSubject, databaseInitSubject, addressCreatedSubject } = remote.require('./startup/sync-block-task/params')

AddressCreatedSubject.setSubject(addressCreatedSubject)

// pass to task a main process subject
AddressesUsedSubject.setSubject(addressesUsedSubject)
Expand Down

0 comments on commit ed557b6

Please sign in to comment.