-walletnotify option bringing down performance.

+1 vote
On my hardware, using the -walletnotify option, even with an empty script, Brings down the transaction by second rate from 200 tx/s to about 38tx/s.

Is there some way to get better performances out of this option ?
asked Jul 3, 2017 by Bric3d

1 Answer

0 votes

The -walletnotify option starts a new process every time it is triggered, and this imposes a burden at the operating system level. But this sounds like unusually slow performance - what hardware are you using, and what version of Linux? The long term solution is to offer a more lightweight notification option in MultiChain. For now it sounds like you'd actually be better off polling listwallettransactions.

answered Jul 3, 2017 by MultiChain
This is on a basic Microsoft Azure VM (1 core, 3.5gb of ram, running an up to date ubuntu), so it's not really surprising to have slow tx/s.
I just noticed the notifyblock function, I guess I could use that one instead and query the block transactions from JSON-RPC
...