From 34f3d8b08819e8edccb1638bc48507d86b440526 Mon Sep 17 00:00:00 2001 From: Mike Hearn Date: Wed, 27 Feb 2013 14:02:19 +0100 Subject: [PATCH] Minor comment fix in Block.java --- core/src/main/java/com/google/bitcoin/core/Block.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/src/main/java/com/google/bitcoin/core/Block.java b/core/src/main/java/com/google/bitcoin/core/Block.java index e942203a..c06e7acb 100644 --- a/core/src/main/java/com/google/bitcoin/core/Block.java +++ b/core/src/main/java/com/google/bitcoin/core/Block.java @@ -47,7 +47,7 @@ public class Block extends Message { private static final Logger log = LoggerFactory.getLogger(Block.class); private static final long serialVersionUID = 2738848929966035281L; - /** How many bytes are required to represent a block header. */ + /** How many bytes are required to represent a block header WITHOUT the trailing 00 length byte. */ public static final int HEADER_SIZE = 80; static final long ALLOWED_TIME_DRIFT = 2 * 60 * 60; // Same value as official client. @@ -380,7 +380,6 @@ public class Block extends Message { * @throws IOException */ public byte[] bitcoinSerialize() { - // we have completely cached byte array. if (headerBytesValid && transactionBytesValid) { Preconditions.checkNotNull(bytes, "Bytes should never be null if headerBytesValid && transactionBytesValid");