mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-03-10 17:26:28 +01:00
Message: replace readBytes(1)[0]
with readByte()
This commit is contained in:
parent
89198853d1
commit
30dec4ff7c
3 changed files with 3 additions and 3 deletions
|
@ -155,7 +155,7 @@ public class BloomFilter extends Message {
|
|||
if (hashFuncs > MAX_HASH_FUNCS)
|
||||
throw new ProtocolException("Bloom filter hash function count out of range");
|
||||
nTweak = readUint32();
|
||||
nFlags = readBytes(1)[0];
|
||||
nFlags = readByte();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -96,7 +96,7 @@ public class RejectMessage extends Message {
|
|||
@Override
|
||||
protected void parse() throws ProtocolException {
|
||||
message = readStr();
|
||||
code = RejectCode.fromCode(readBytes(1)[0]);
|
||||
code = RejectCode.fromCode(readByte());
|
||||
reason = readStr();
|
||||
if (message.equals("block") || message.equals("tx"))
|
||||
messageHash = readHash();
|
||||
|
|
|
@ -144,7 +144,7 @@ public class VersionMessage extends Message {
|
|||
// int bestHeight (size of known block chain).
|
||||
bestHeight = readUint32();
|
||||
if (clientVersion >= params.getProtocolVersionNum(NetworkParameters.ProtocolVersion.BLOOM_FILTER)) {
|
||||
relayTxesBeforeFilter = readBytes(1)[0] != 0;
|
||||
relayTxesBeforeFilter = readByte() != 0;
|
||||
} else {
|
||||
relayTxesBeforeFilter = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue