From 42ca13de634da1b9eef326c9176b7162fa945dba Mon Sep 17 00:00:00 2001 From: yanguoyu <841185308@qq.com> Date: Fri, 17 Nov 2023 15:38:15 +0800 Subject: [PATCH] fix: Add message send to avoid the tx db has not submit finish yet. --- packages/neuron-wallet/src/block-sync-renderer/sync/queue.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/neuron-wallet/src/block-sync-renderer/sync/queue.ts b/packages/neuron-wallet/src/block-sync-renderer/sync/queue.ts index 66b9cbc4a9..e53df531d4 100644 --- a/packages/neuron-wallet/src/block-sync-renderer/sync/queue.ts +++ b/packages/neuron-wallet/src/block-sync-renderer/sync/queue.ts @@ -90,6 +90,7 @@ export default class Queue { while (true) { try { await this.#checkAndSave(txHashes) + process.send?.({ channel: 'tx-db-changed' }) break } catch (error) { logger.error('retry saving transactions in 2 seconds due to error:', error)