validation.h
, which ultimately means needing boost via txmempool.h
, include primitives/block.h
for CBlock
, and remove validation.h
, as we can get cs_main
from node/blockstorage.h
.
validation.h
, which ultimately means needing boost via txmempool.h
, include primitives/block.h
for CBlock
, and remove validation.h
, as we can get cs_main
from node/blockstorage.h
.
Rather than including validation.h, which ultimately means needing boost
via txmempool.h, include primitives/block.h for CBlock, and remove
validation.h, as we can get cs_main from node/blockstorage.h.
Nice. ACK a10df7cf351e3947ba2d6cd1357d2c3348f8559a.
As a follow-up, I wonder if we should just suck it up and move cs_main
to its own minimal header/cpp rather than copy/paste the declaration of it all over the place and having it defined in an arbitrary file. That’s very c-like :(
7@@ -8,7 +8,7 @@
8
9 #include <zmq.h>
10
11-#include <validation.h>
12+#include <primitives/block.h>
iwuy reports:
0zmq/zmqnotificationinterface.cpp should add these lines:
1#include <assert.h> // for assert
2#include <map> // for map, operator==, _Rb_tree_iterator
3#include <string> // for string, char_traits, operator+
4#include <utility> // for move, pair
5#include <vector> // for vector
6#include "logging.h" // for LogPrintf_, ZMQ, LogPrint
7#include "primitives/block.h" // for CBlock
8#include "zmq/zmqabstractnotifier.h" // for CZMQAbstractNotifier, CZMQNotif...
9
10zmq/zmqnotificationinterface.cpp should remove these lines:
11- #include <validation.h> // lines 11-11
10@@ -11,7 +11,6 @@
11 #include <rpc/server.h>
12 #include <streams.h>
13 #include <util/system.h>
14-#include <validation.h> // For cs_main
nit: This change will confuse iwuy, as now it reports:
0The full include-list for zmq/zmqpublishnotifier.cpp:
1...
2#include <validation.h> // for cs_main
Labels
Build system