throw new UnreadableWalletException("Peer IP address does not have the right length", e); int port = proto.getPort(); PeerAddress address = new PeerAddress(ip, port); address.setServices(BigInteger.valueOf(proto.getServices()));
public Builder mergeFrom(com.openwallet.core.protos.Protos.PeerAddress other) { if (other == com.openwallet.core.protos.Protos.PeerAddress.getDefaultInstance()) return this; if (other.hasIpAddress()) { setIpAddress(other.getIpAddress()); } if (other.hasPort()) { setPort(other.getPort()); } if (other.hasServices()) { setServices(other.getServices()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }