Skip to content

Use C++ language binding for ZMQ #13957

@domob1812

Description

@domob1812

ZMQ has a native language binding for C++, which among other things takes advantage of RAII for the context, sockets and messages.

Is there any particular reason why Bitcoin Core's ZMQ interface does not use the C++ language bindings? That would most likely simplify the code a lot and make it more robust against subtle bugs.

I'm aware that the doc/zmq.md file explicitly says that "the C++ language bindings are not necessary" - however, at least on my Debian system, it seems that the default ZMQ package libzmq3-dev already includes the C++ language bindings; so it is not really a separate dependency.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions