Skip to content

Wishlist: RPC call to wait #130

@phmarek

Description

@phmarek

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions