mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-07 23:03:04 +00:00
Minor comment fix in Block.java
This commit is contained in:
parent
301299cff9
commit
34f3d8b088
@ -47,7 +47,7 @@ public class Block extends Message {
|
|||||||
private static final Logger log = LoggerFactory.getLogger(Block.class);
|
private static final Logger log = LoggerFactory.getLogger(Block.class);
|
||||||
private static final long serialVersionUID = 2738848929966035281L;
|
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;
|
public static final int HEADER_SIZE = 80;
|
||||||
|
|
||||||
static final long ALLOWED_TIME_DRIFT = 2 * 60 * 60; // Same value as official client.
|
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
|
* @throws IOException
|
||||||
*/
|
*/
|
||||||
public byte[] bitcoinSerialize() {
|
public byte[] bitcoinSerialize() {
|
||||||
|
|
||||||
// we have completely cached byte array.
|
// we have completely cached byte array.
|
||||||
if (headerBytesValid && transactionBytesValid) {
|
if (headerBytesValid && transactionBytesValid) {
|
||||||
Preconditions.checkNotNull(bytes, "Bytes should never be null if headerBytesValid && transactionBytesValid");
|
Preconditions.checkNotNull(bytes, "Bytes should never be null if headerBytesValid && transactionBytesValid");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user