adjusting for java8 api
This commit is contained in:
parent
be51e4d958
commit
3c0e7c894d
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue