using a linked hash map

This commit is contained in:
Gianluigi 2014-08-27 12:39:26 +02:00
parent d2b7866a63
commit 6c5c5f0dbb
1 changed files with 5 additions and 7 deletions

View File

@ -1,13 +1,11 @@
package org.ethereum.net.message; package org.ethereum.net.message;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import static org.ethereum.net.Command.PEERS; import static org.ethereum.net.Command.PEERS;
import java.nio.ByteBuffer;
import java.util.LinkedHashSet;
import java.util.Set;
import org.ethereum.net.Command; import org.ethereum.net.Command;
import org.ethereum.net.client.PeerData; import org.ethereum.net.client.PeerData;
import org.ethereum.util.RLP; import org.ethereum.util.RLP;
@ -23,7 +21,7 @@ public class PeersMessage extends Message {
private boolean parsed = false; private boolean parsed = false;
private final Set<PeerData> peers = new HashSet<PeerData>(); private final Set<PeerData> peers = new LinkedHashSet<PeerData>();
public PeersMessage(byte[] payload) { public PeersMessage(byte[] payload) {
super(RLP.decode2(payload)); super(RLP.decode2(payload));