aboutsummaryrefslogtreecommitdiff
path: root/src/banman.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@protonmail.com>2019-11-04 13:18:19 +0100
committerWladimir J. van der Laan <laanwj@protonmail.com>2019-11-04 13:18:27 +0100
commitc4b8dd20600f72e20c513a33e2df6928c06facfc (patch)
treeb8cf3393b39e957158ee65e25dcf5d6711f0ce55 /src/banman.h
parent463eab5e1418a592036e7bf9bf46f66fe6462435 (diff)
parentf44abe4bed25a40145ab168adc1589f5df4146f3 (diff)
downloadbitcoin-c4b8dd20600f72e20c513a33e2df6928c06facfc.tar.xz
Merge #17297: refactor: Remove addrdb.h dependency from node.h
f44abe4bed25a40145ab168adc1589f5df4146f3 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 f44abe4bed25a40145ab168adc1589f5df4146f3 practicalswift: ACK f44abe4bed25a40145ab168adc1589f5df4146f3 Tree-SHA512: 33a1be20e5c629daf4a61ebbf93ea6494b9256887cebd4974de4782f6d324404b6cc84909533d9502b2cc19902083f1f9307d4fb7231e67db5b412b842d13072
Diffstat (limited to 'src/banman.h')
-rw-r--r--src/banman.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/banman.h b/src/banman.h
index 9d45bf0559..7943f666e8 100644
--- a/src/banman.h
+++ b/src/banman.h
@@ -10,6 +10,7 @@
#include <addrdb.h>
#include <fs.h>
+#include <net_types.h> // For banmap_t
#include <sync.h>
// NOTE: When adjusting this, update rpcnet:setban's help ("24h")