3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-15 03:35:52 +00:00

VersionMessage: Define service bits a bit differently.

This commit is contained in:
Andreas Schildbach 2017-08-22 12:18:56 +02:00
parent 3ef5f9f2d7
commit ff970f6fad

View File

@ -45,10 +45,10 @@ public class VersionMessage extends Message {
/** The value that is prepended to the subVer field of this application. */ /** The value that is prepended to the subVer field of this application. */
public static final String LIBRARY_SUBVER = "/bitcoinj:" + BITCOINJ_VERSION + "/"; public static final String LIBRARY_SUBVER = "/bitcoinj:" + BITCOINJ_VERSION + "/";
/** A services flag that denotes whether the peer has a copy of the block chain or not. */ /** A service bit that denotes whether the peer has a copy of the block chain or not. */
public static final int NODE_NETWORK = 1; public static final int NODE_NETWORK = 1 << 0;
/** A flag that denotes whether the peer supports the getutxos message or not. */ /** A service bit that denotes whether the peer supports the getutxos message or not. */
public static final int NODE_GETUTXOS = 2; public static final int NODE_GETUTXOS = 1 << 1;
/** /**
* The version number of the protocol spoken. * The version number of the protocol spoken.