diff --git a/net.h b/net.h
index f070816..205991f 100644
--- a/net.h
+++ b/net.h
@@ -16,7 +16,7 @@ inline unsigned short GetDefaultPort() { return fTestNet ? htons(18333) : htons(
static const unsigned int PUBLISH_HOPS = 5;
enum
{
- NODE_NETWORK = (1 << 0),
+ NODE_NETWORK = 1,
};
The code is correct as-is. This is the normal way someone defines bitmap constants, and is found throughout the Linux kernel among other places.
In the future, you would probably see
enum {
NODE_NETWORK = (1 << 0),
NODE_FOO = (1 << 1),
NODE_BAR = (1 << 2),
};
etc.