BitcoinSerializer: remove unused parameter checksum in makeMessage()

This commit is contained in:
micheal swiggs-malmevik 2023-02-01 17:06:03 +01:00 committed by Andreas Schildbach
parent 56e936d534
commit 3950b88f76

View file

@ -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);