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; }