This adds a new wallet RPC call listsincetx
that allows to list follow-up transactions (in order / wtxOrdered
) from a specified transaction.
If the latest transaction was used as base-point for finding follow-up transactions and the long-polling timeout if set greater then zero, it will wait until new transactions has been found or the timeout has been expired (http push channel). Used together with a https proxy, one can build a very robust wallet transaction push channel (that can bypass NATs, proxys, etc.)
This does allow to build a wallet-notify push channel without keeping client-states on the server side. It does also allow clients to effectively sync the transaction list.
A client can simply loop over listsincetx(<newest_known_txid>, 30/*timeout*/)
and will immediately get new txns once they arrive.
Mitigates #13237 Related #7949
This (or a similar) approach was once discussed during an IRC meeting (can’t find it anymore in the logs).
- Needs release notes
- Needs wallet notify example python script