Skip to content

Commit

Permalink
StoredBlock: remove an outdated comment
Browse files Browse the repository at this point in the history
We don't have unsafeBitcoinSerialize() any more.
  • Loading branch information
schildbach committed Jun 26, 2024
1 parent c12fa3b commit 009f19a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions core/src/main/java/org/bitcoinj/core/StoredBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,6 @@ public void serializeCompact(ByteBuffer buffer) {
}
buffer.put(chainWorkBytes);
buffer.putInt(getHeight());
// Using unsafeBitcoinSerialize here can give us direct access to the same bytes we read off the wire,
// avoiding serialization round-trips.
byte[] bytes = getHeader().serialize();
buffer.put(bytes, 0, Block.HEADER_SIZE); // Trim the trailing 00 byte (zero transactions).
}
Expand Down

0 comments on commit 009f19a

Please sign in to comment.