adjusting for java8 api

This commit is contained in:
Roman Mandeleil 2014-12-29 21:37:20 +02:00
parent be51e4d958
commit 3c0e7c894d
1 changed files with 6 additions and 0 deletions

View File

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