Add public key to pending contacts.

This commit is contained in:
akwizgran
2019-04-17 15:30:15 +01:00
parent 296ce080e2
commit 3aadcc17dd
6 changed files with 32 additions and 18 deletions

View File

@@ -149,8 +149,10 @@ public class TestUtils {
public static PendingContact getPendingContact(int nameLength) {
PendingContactId id = new PendingContactId(getRandomId());
byte[] publicKey = getRandomBytes(MAX_PUBLIC_KEY_LENGTH);
String alias = getRandomString(nameLength);
return new PendingContact(id, alias, WAITING_FOR_CONNECTION, timestamp);
return new PendingContact(id, publicKey, alias, WAITING_FOR_CONNECTION,
timestamp);
}
public static double getMedian(Collection<? extends Number> samples) {