From ef6dc23300f3d2828b9b64f9460781aee8248961 Mon Sep 17 00:00:00 2001 From: fr00t Date: Mon, 19 Feb 2024 18:10:49 +0100 Subject: [PATCH] Change optimize triggers --- server.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server.js b/server.js index dc0579a..fcdcf5d 100644 --- a/server.js +++ b/server.js @@ -149,7 +149,11 @@ app.listen(process.env.SYS_API_PORT, async () => { saveWallet(wallet) - wallet.on('transaction', async () => { + wallet.on('createdtx', async () => { + optimizeMessages(wallet) + }) + + wallet.on('incomingtx', async () => { optimizeMessages(wallet) })