From 3181daa3a95f911ba3509ace9586c8056de59b87 Mon Sep 17 00:00:00 2001 From: "Richard T. Carback III" <rick.carback@gmail.com> Date: Tue, 28 Jun 2022 20:04:55 +0000 Subject: [PATCH] Use existing params when available --- e2e/manager.go | 1 + e2e/sendE2E.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/e2e/manager.go b/e2e/manager.go index 6d4102ebb..5ae47e6c1 100644 --- a/e2e/manager.go +++ b/e2e/manager.go @@ -173,6 +173,7 @@ func (m *manager) StartProcesses() (stoppable.Stoppable, error) { recipient *id.ID, payload []byte, cmixParams cmix.CMIXParams) ( []id.Round, e2e.MessageID, time.Time, error) { + // FIXME: we should have access to the e2e params here... par := GetDefaultParams() par.CMIXParams = cmixParams return m.SendE2E(mt, recipient, payload, par) diff --git a/e2e/sendE2E.go b/e2e/sendE2E.go index 65cf98cdf..159f7c845 100644 --- a/e2e/sendE2E.go +++ b/e2e/sendE2E.go @@ -81,7 +81,7 @@ func (m *manager) sendE2E(mt catalog.MessageType, recipient *id.ID, rekeySendFunc := func(mt catalog.MessageType, recipient *id.ID, payload []byte, cmixParams cmix.CMIXParams) ( []id.Round, e2e.MessageID, time.Time, error) { - par := GetDefaultParams() + par := params par.CMIXParams = cmixParams return m.SendE2E(mt, recipient, payload, par) } -- GitLab