mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-07-31 20:11:23 +00:00
VersionMessage: Define service bits a bit differently.
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user