Skip to content

Commit

Permalink
Change optimize triggers (#306)
Browse files Browse the repository at this point in the history
  • Loading branch information
f-r00t committed Feb 19, 2024
1 parent 4481b98 commit 43c778d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})

Expand Down

0 comments on commit 43c778d

Please sign in to comment.