From 8809872a3212e12c8d71f97d68f3ccfcf6ea2a47 Mon Sep 17 00:00:00 2001 From: Mike Hearn Date: Fri, 25 Nov 2011 14:03:55 +0000 Subject: [PATCH] Set version to 0.3 in the version message --- src/com/google/bitcoin/core/VersionMessage.java | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/com/google/bitcoin/core/VersionMessage.java b/src/com/google/bitcoin/core/VersionMessage.java index 19f41205..7551e123 100644 --- a/src/com/google/bitcoin/core/VersionMessage.java +++ b/src/com/google/bitcoin/core/VersionMessage.java @@ -63,14 +63,10 @@ public class VersionMessage extends Message { super(params, msg, 0); } - /** - * 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 - * back down the wire. - */ -// public VersionMessage(NetworkParameters params, byte[] msg, boolean parseLazy, boolean parseRetain) throws ProtocolException { -// super(params, msg, 0, parseLazy, parseRetain); -// } + // 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 + // back down the wire. + public VersionMessage(NetworkParameters params, int newBestHeight) { super(params); clientVersion = NetworkParameters.PROTOCOL_VERSION; @@ -84,7 +80,7 @@ public class VersionMessage extends Message { } catch (UnknownHostException e) { throw new RuntimeException(e); // Cannot happen. } - subVer = "BitCoinJ 0.3-SNAPSHOT"; + subVer = "BitCoinJ 0.3"; bestHeight = newBestHeight; length = 84;