Merge #17297: refactor: Remove addrdb.h dependency from node.h

f44abe4bed refactor: Remove addrdb.h dependency from node.h (Hennadii Stepanov)

Pull request description:

  `node.h` includes `addrdb.h` just for the sake of `banmap_t` type.
  This PR makes dependencies simpler and explicit.

  ~Also needless `typedef` has been removed from `enum BanReason`.~

ACKs for top commit:
  laanwj:
    ACK f44abe4bed
  practicalswift:
    ACK f44abe4bed

Tree-SHA512: 33a1be20e5c629daf4a61ebbf93ea6494b9256887cebd4974de4782f6d324404b6cc84909533d9502b2cc19902083f1f9307d4fb7231e67db5b412b842d13072
This commit is contained in:
Wladimir J. van der Laan committed 2019-11-04 13:18:27 +01:00
commit c4b8dd2060
7 files changed
+23 -6

No files matched your search

+2 -2
View File
@@ -4,9 +4,9 @@
#include <qt/bantablemodel.h>
#include <qt/clientmodel.h>
#include <interfaces/node.h>
#include <net_types.h> // For banmap_t
#include <qt/clientmodel.h>
#include <algorithm>