mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-12 18:25:51 +00:00
VersionMessage: Define service bits a bit differently.
This commit is contained in:
parent
3ef5f9f2d7
commit
ff970f6fad
@ -45,10 +45,10 @@ public class VersionMessage extends Message {
|
||||
/** The value that is prepended to the subVer field of this application. */
|
||||
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. */
|
||||
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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user