-
Notifications
You must be signed in to change notification settings - Fork 37.7k
Closed
Labels
Description
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.