mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-07 14:54:15 +00:00
Make some accessors on Ping/Pong public.
This commit is contained in:
parent
b4644fdf81
commit
98fc5827f2
@ -65,11 +65,11 @@ public class Ping extends Message {
|
||||
|
||||
}
|
||||
|
||||
boolean hasNonce() {
|
||||
public boolean hasNonce() {
|
||||
return hasNonce;
|
||||
}
|
||||
|
||||
long getNonce() {
|
||||
public long getNonce() {
|
||||
return nonce;
|
||||
}
|
||||
}
|
||||
|
@ -50,8 +50,9 @@ public class Pong extends Message {
|
||||
@Override
|
||||
protected void parseLite() {
|
||||
}
|
||||
|
||||
long getNonce() {
|
||||
|
||||
/** Returns the nonce sent by the remote peer. */
|
||||
public long getNonce() {
|
||||
return nonce;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user