mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-03-13 11:36:15 +01:00
BitcoinSerializer: remove unused parameter checksum
in makeMessage()
This commit is contained in:
parent
56e936d534
commit
3950b88f76
1 changed files with 2 additions and 2 deletions
|
@ -212,13 +212,13 @@ public class BitcoinSerializer extends MessageSerializer {
|
|||
}
|
||||
|
||||
try {
|
||||
return makeMessage(header.command, header.size, payloadBytes, hash, header.checksum);
|
||||
return makeMessage(header.command, header.size, payloadBytes, hash);
|
||||
} catch (Exception e) {
|
||||
throw new ProtocolException("Error deserializing message " + HEX.encode(payloadBytes) + "\n", e);
|
||||
}
|
||||
}
|
||||
|
||||
private Message makeMessage(String command, int length, byte[] payloadBytes, byte[] hash, byte[] checksum) throws ProtocolException {
|
||||
private Message makeMessage(String command, int length, byte[] payloadBytes, byte[] hash) throws ProtocolException {
|
||||
// We use an if ladder rather than reflection because reflection is very slow on Android.
|
||||
if (command.equals("version")) {
|
||||
return new VersionMessage(params, payloadBytes);
|
||||
|
|
Loading…
Add table
Reference in a new issue