Timestamp isn't needed for deriving root key.

This commit is contained in:
akwizgran
2021-06-09 10:07:36 +01:00
committed by Torsten Grote
parent 0df57c82cb
commit f406de6b0c
4 changed files with 6 additions and 10 deletions

View File

@@ -530,8 +530,7 @@ public class TransportKeyAgreementManagerImplTest extends BrambleMockTestCase {
private void expectDeriveAndStoreTransportKeys(Transaction txn)
throws Exception {
context.checking(new Expectations() {{
oneOf(crypto).deriveRootKey(localKeyPair, remotePublicKey,
min(localTimestamp, remoteTimestamp));
oneOf(crypto).deriveRootKey(localKeyPair, remotePublicKey);
will(returnValue(rootKey));
oneOf(db).getContact(txn, contact.getId());
will(returnValue(contact));