Skip to content

Commit

Permalink
chore: set lock hashes unique
Browse files Browse the repository at this point in the history
  • Loading branch information
classicalliu committed Nov 28, 2019
1 parent ed557b6 commit 43edefe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/neuron-wallet/src/services/sync/block-listener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,12 @@ export default class BlockListener {
}

public setLockHashes = (lockHashes: string[]) => {
this.lockHashes = lockHashes
const hashes = [...new Set(lockHashes)]
this.lockHashes = hashes
if (!this.queue) {
return
}
this.queue.setLockHashes(lockHashes)
this.queue.setLockHashes(hashes)
}

public appendLockHashes = (lockHashes: string[]) => {
Expand Down

0 comments on commit 43edefe

Please sign in to comment.