aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorCory Fields <cory-nospam-@coryfields.com>2017-04-10 15:00:23 -0400
committerWladimir J. van der Laan <laanwj@gmail.com>2017-04-14 10:35:49 +0200
commit30fa231011a63404a087420a9de7271af077affa (patch)
treec719ebdc883edf98ae982994b76104432e38e64e /src/net.h
parent3c796026e56abddf1b37128c0478532a371b5f9f (diff)
downloadbitcoin-30fa231011a63404a087420a9de7271af077affa.tar.xz
net: define NodeId as an int64_t
This should make occurances of NodeId wrapping essentially impossible for real-world usage. Github-Pull: #10176 Rebased-From: c851be4b25905977ca471c42435dc590fd2ff2f5
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.h b/src/net.h
index 29b6a44c88..dc727152a3 100644
--- a/src/net.h
+++ b/src/net.h
@@ -92,7 +92,7 @@ static const ServiceFlags REQUIRED_SERVICES = NODE_NETWORK;
// NOTE: When adjusting this, update rpcnet:setban's help ("24h")
static const unsigned int DEFAULT_MISBEHAVING_BANTIME = 60 * 60 * 24; // Default 24-hour ban
-typedef int NodeId;
+typedef int64_t NodeId;
struct AddedNodeInfo
{