class NeighborsPacketData implements PacketData {

  public static NeighborsPacketData readFrom(final RLPInput in) {
    in.enterList();
    final List<DiscoveryPeer> peers = in.readList(DiscoveryPeer::readFrom);
    final long expiration = in.readLongScalar();
    in.leaveListLenient();
    return new NeighborsPacketData(peers, expiration);
  }

  private  NeighborsPacketData(final List<DiscoveryPeer> peers, final long expiration);

}