mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-24 06:47:54 +01:00
CheckpointManager: Use a standard charset.
This commit is contained in:
parent
5948be6b91
commit
35cec435cc
1 changed files with 1 additions and 1 deletions
|
@ -121,7 +121,7 @@ public class CheckpointManager {
|
|||
digestInputStream.on(false);
|
||||
byte[] header = new byte[BINARY_MAGIC.length()];
|
||||
dis.readFully(header);
|
||||
if (!Arrays.equals(header, BINARY_MAGIC.getBytes("US-ASCII")))
|
||||
if (!Arrays.equals(header, BINARY_MAGIC.getBytes(StandardCharsets.US_ASCII)))
|
||||
throw new IOException("Header bytes did not match expected version");
|
||||
int numSignatures = checkPositionIndex(dis.readInt(), MAX_SIGNATURES, "Num signatures out of range");
|
||||
for (int i = 0; i < numSignatures; i++) {
|
||||
|
|
Loading…
Add table
Reference in a new issue