mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-24 22:58:32 +01:00
Set version to 0.3 in the version message
This commit is contained in:
parent
a2f0cb54a7
commit
8809872a32
1 changed files with 5 additions and 9 deletions
|
@ -63,14 +63,10 @@ public class VersionMessage extends Message {
|
||||||
super(params, msg, 0);
|
super(params, msg, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
// It doesn't really make sense to ever lazily parse a version message or to retain the backing bytes.
|
||||||
* It doesn't really make sense to ever lazily parse a version message or to retain the backing bytes.
|
// If you're receiving this on the wire you need to check the protocol version and it will never need to be sent
|
||||||
* If you're receiving this on the wire you need to check the protocol version and it will never need to be sent
|
// back down the wire.
|
||||||
* back down the wire.
|
|
||||||
*/
|
|
||||||
// public VersionMessage(NetworkParameters params, byte[] msg, boolean parseLazy, boolean parseRetain) throws ProtocolException {
|
|
||||||
// super(params, msg, 0, parseLazy, parseRetain);
|
|
||||||
// }
|
|
||||||
public VersionMessage(NetworkParameters params, int newBestHeight) {
|
public VersionMessage(NetworkParameters params, int newBestHeight) {
|
||||||
super(params);
|
super(params);
|
||||||
clientVersion = NetworkParameters.PROTOCOL_VERSION;
|
clientVersion = NetworkParameters.PROTOCOL_VERSION;
|
||||||
|
@ -84,7 +80,7 @@ public class VersionMessage extends Message {
|
||||||
} catch (UnknownHostException e) {
|
} catch (UnknownHostException e) {
|
||||||
throw new RuntimeException(e); // Cannot happen.
|
throw new RuntimeException(e); // Cannot happen.
|
||||||
}
|
}
|
||||||
subVer = "BitCoinJ 0.3-SNAPSHOT";
|
subVer = "BitCoinJ 0.3";
|
||||||
bestHeight = newBestHeight;
|
bestHeight = newBestHeight;
|
||||||
|
|
||||||
length = 84;
|
length = 84;
|
||||||
|
|
Loading…
Add table
Reference in a new issue