Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wishlist: RPC call to wait #130

Open
phmarek opened this issue Dec 1, 2020 · 0 comments
Open

Wishlist: RPC call to wait #130

phmarek opened this issue Dec 1, 2020 · 0 comments

Comments

@phmarek
Copy link

phmarek commented Dec 1, 2020

There's an argument -blocknotify for ´multichaind` to call some external program when a new block has been mined. This is great!

For some use cases it would be easier to get notified via an RPC call; the easiest way I can think of is some blocknotify RPC call that just pushes the (still open) socket onto a to-be-notified list, and this list of FDs gets close()d when a new block is available.
(Nearly no memory or other overhead.)

Of course, a few other features might be nice - like a timeout argument, or preferences whether to wake up only for a new block or for a new transaction (unconfirmed), etc. - but just having a wakeup via the same channel that the blockchain gets controlled with would be very nice.

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant