From 3c0e7c894d11a269278c2149a40a1c01b244937a Mon Sep 17 00:00:00 2001 From: Roman Mandeleil Date: Mon, 29 Dec 2014 21:37:20 +0200 Subject: [PATCH] adjusting for java8 api --- .../src/main/java/org/ethereum/net/server/Channel.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ethereumj-core/src/main/java/org/ethereum/net/server/Channel.java b/ethereumj-core/src/main/java/org/ethereum/net/server/Channel.java index 8c49345b..fffb16af 100644 --- a/ethereumj-core/src/main/java/org/ethereum/net/server/Channel.java +++ b/ethereumj-core/src/main/java/org/ethereum/net/server/Channel.java @@ -4,6 +4,7 @@ import org.ethereum.core.Block; import org.ethereum.core.Transaction; import org.ethereum.net.MessageQueue; import org.ethereum.net.eth.EthHandler; +import org.ethereum.net.p2p.HelloMessage; import org.ethereum.net.p2p.P2pHandler; import org.ethereum.net.shh.ShhHandler; import org.ethereum.net.wire.MessageDecoder; @@ -90,6 +91,11 @@ public class Channel { } + public HelloMessage getHandshakeHelloMessage(){ + return getP2pHandler().getHandshakeHelloMessage(); + } + + public boolean isSync() { return ethHandler.getSyncStatus() == EthHandler.SyncSatus.SYNC_DONE; }