VersionMessage: Define service bits a bit differently.

This commit is contained in:
Andreas Schildbach
2017-08-22 12:18:56 +02:00
parent ca149005ab
commit bb3609b8c9

View File

@@ -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.