From bb3609b8c9ff62ac0ea9f3cbd2cb4075c3cd0f8a Mon Sep 17 00:00:00 2001 From: Andreas Schildbach Date: Tue, 22 Aug 2017 12:18:56 +0200 Subject: [PATCH] VersionMessage: Define service bits a bit differently. --- core/src/main/java/org/bitcoinj/core/VersionMessage.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/main/java/org/bitcoinj/core/VersionMessage.java b/core/src/main/java/org/bitcoinj/core/VersionMessage.java index ab1868db..eac0f54b 100644 --- a/core/src/main/java/org/bitcoinj/core/VersionMessage.java +++ b/core/src/main/java/org/bitcoinj/core/VersionMessage.java @@ -37,10 +37,10 @@ import java.util.Locale; */ public class VersionMessage extends Message { - /** A services flag that denotes whether the peer has a copy of the block chain or not. */ - public static final int NODE_NETWORK = 1; - /** A flag that denotes whether the peer supports the getutxos message or not. */ - public static final int NODE_GETUTXOS = 2; + /** A service bit that denotes whether the peer has a copy of the block chain or not. */ + public static final int NODE_NETWORK = 1 << 0; + /** A service bit that denotes whether the peer supports the getutxos message or not. */ + public static final int NODE_GETUTXOS = 1 << 1; /** * The version number of the protocol spoken.