diff --git a/packages/neuron-wallet/src/services/sync/block-listener.ts b/packages/neuron-wallet/src/services/sync/block-listener.ts index 5aed6e8d2b..b592ff7088 100644 --- a/packages/neuron-wallet/src/services/sync/block-listener.ts +++ b/packages/neuron-wallet/src/services/sync/block-listener.ts @@ -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[]) => {