VersionMessage: re-add service bit constants as deprecated

This commit is contained in:
Andreas Schildbach 2023-07-28 11:47:44 +02:00
parent b0b0b02683
commit 50c0f2eae9

View file

@ -55,6 +55,22 @@ public class VersionMessage extends BaseMessage {
/** The value that is prepended to the subVer field of this application. */
public static final String LIBRARY_SUBVER = "/bitcoinj:" + BITCOINJ_VERSION + "/";
/** @deprecated use {@link Services#NODE_NETWORK} */
@Deprecated
public static final int NODE_NETWORK = 1 << 0;
/** @deprecated use {@link Services#NODE_BLOOM} */
@Deprecated
public static final int NODE_BLOOM = 1 << 2;
/** @deprecated use {@link Services#NODE_WITNESS} */
@Deprecated
public static final int NODE_WITNESS = 1 << 3;
/** @deprecated use {@link Services#NODE_NETWORK_LIMITED} */
@Deprecated
public static final int NODE_NETWORK_LIMITED = 1 << 10;
/** @deprecated use {@link Services#NODE_BITCOIN_CASH} */
@Deprecated
public static final int NODE_BITCOIN_CASH = 1 << 5;
/**
* The version number of the protocol spoken.
*/