< anon563718>
what's the recommended way, using walletnotify to reach the server for own transactions, or using zmq and filter every transaction to see if it belongs to the wallet?
< anon563718>
I see there was a time someone proposed a zmq for wallet transactions only, but never got implemented
< gmaxwell>
Poll the RPC.
< gmaxwell>
Any kind of notify has the risk of missing messages, so you need to poll regardless. And once you've implemented polling the only additional gain from any kind of notifying is a potential latency reduction.
< gmaxwell>
But even a once per second poll is very slow, and yet provides reasonably low latency for transaction delay for almost any application.
< gmaxwell>
Polling isn't a good solution for some public web service where there might be thousands of clients, but on a private system where there is only one or a few clients, it's an excellent, simple, and reliable solution.
< promag>
anon563718: +1 gmaxwell, you can also have a large period, say 30sec, and use -walletnotify to trigger a faster poll
< promag>
anon563718: you might be interested in #7949
< anon563718>
Thanks for the recommendations, I came across 7949 but it seems it's not implemented yet
< anon563718>
when you mention polling rpc, which command is the one you refer to? listsinceblocks?
< belcher>
anon563718 listtransactions
< kanzure>
i've implemented polling in the context of web applications with many workers or clients; the trick is to find the most recent common block that you have processed vs haven't processed yet.
< echeveria>
kanzure: and handle reorgs.
< kanzure>
yes. most recent common is required because otherwise you wont handle reorgs correctly.
< provoostenator>
Any wallet / keypool gurus want to review #14075? I got confused multiple times mostly due to my own stupidity, but I think it's correct now...
< gribble>
https://github.com/bitcoin/bitcoin/issues/14075 | Import watch only pubkeys to the keypool if private keys are disabled by achow101 · Pull Request #14075 · bitcoin/bitcoin · GitHub
< bitcoin-git>
bitcoin/master 30d0f7b benthecarman: rpc: Fix for segfault if combinepsbt called with empty inputs
< bitcoin-git>
bitcoin/master e84e0d4 MarcoFalke: Merge #15337: rpc: Fix for segfault if combinepsbt called with empty input...
< bitcoin-git>
[bitcoin] MarcoFalke merged pull request #15337: rpc: Fix for segfault if combinepsbt called with empty inputs (master...rpc_combinepbst_empty_fix) https://github.com/bitcoin/bitcoin/pull/15337
< bitcoin-git>
bitcoin/master 50e6472 Russell Yanofsky: Move ParseConfirmTarget from rpc/mining to rpc/util
< bitcoin-git>
bitcoin/master ad039aa MarcoFalke: Merge #15373: Move ParseConfirmTarget from rpc/mining to rpc/util
< bitcoin-git>
[bitcoin] MarcoFalke merged pull request #15373: Move ParseConfirmTarget from rpc/mining to rpc/util (master...pr/movtarget) https://github.com/bitcoin/bitcoin/pull/15373
< moneyball>
provoostenator: thanks for the proposed topic I'll add it now
< wumpus>
PSA I've bumped my gpg key's expiration date (both the binaries signing key and my personal one), please --refresh-keys or they'll expire in three days