mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-24 14:50:57 +01:00
PeerAddress: make onionChecksum static
The onionChecksum() method uses no instance variables and has no side-effects, so it can be static.
This commit is contained in:
parent
bdc174e9bc
commit
22f02955d7
1 changed files with 1 additions and 1 deletions
|
@ -285,7 +285,7 @@ public class PeerAddress extends ChildMessage {
|
|||
}
|
||||
}
|
||||
|
||||
private byte[] onionChecksum(byte[] pubkey, byte version) {
|
||||
private static byte[] onionChecksum(byte[] pubkey, byte version) {
|
||||
if (pubkey.length != 32)
|
||||
throw new IllegalArgumentException();
|
||||
SHA3.Digest256 digest256 = new SHA3.Digest256();
|
||||
|
|
Loading…
Add table
Reference in a new issue