mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-12 18:25:51 +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;
|
return hasNonce;
|
||||||
}
|
}
|
||||||
|
|
||||||
long getNonce() {
|
public long getNonce() {
|
||||||
return nonce;
|
return nonce;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -50,8 +50,9 @@ public class Pong extends Message {
|
|||||||
@Override
|
@Override
|
||||||
protected void parseLite() {
|
protected void parseLite() {
|
||||||
}
|
}
|
||||||
|
|
||||||
long getNonce() {
|
/** Returns the nonce sent by the remote peer. */
|
||||||
|
public long getNonce() {
|
||||||
return nonce;
|
return nonce;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user