aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2017-04-13 16:30:38 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2017-04-13 16:35:27 +0200
commitcf8a8b1028d683871a6267efc5be860d07a181a3 (patch)
tree0e9e9c1b0b6620ea9f5b142b04cf32e86c5d71db /src/net.h
parent70f6f56e9dde0d0eb1a51e70c051b8fa3ba9535f (diff)
parentc851be4b25905977ca471c42435dc590fd2ff2f5 (diff)
downloadbitcoin-cf8a8b1028d683871a6267efc5be860d07a181a3.tar.xz
Merge #10176: net: gracefully handle NodeId wrapping
c851be4 net: define NodeId as an int64_t (Cory Fields) Tree-SHA512: 2ccc931cfcdc555313b9434d8de2f6cea759b31891212ca62f962208f60157d4fc593010e3ca61265d1a20d6f78c6ca79103600b85df77983d5509d192875b96
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 0fb0ad5039..91b2685e48 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
{