From e05cd097a9cab49587178dde573305c29a7200a2 Mon Sep 17 00:00:00 2001 From: benjamin <ben@elixxir.io> Date: Tue, 25 Oct 2022 11:12:08 -0700 Subject: [PATCH] updatred for creation timestamp in channel --- broadcast/client.go | 3 +-- channels/joinedChannel_test.go | 2 +- go.mod | 2 +- go.sum | 2 ++ 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/broadcast/client.go b/broadcast/client.go index e24c72248..678c7e9dc 100644 --- a/broadcast/client.go +++ b/broadcast/client.go @@ -14,7 +14,6 @@ import ( "gitlab.com/elixxir/client/cmix/message" crypto "gitlab.com/elixxir/crypto/broadcast" "gitlab.com/elixxir/crypto/fastRNG" - "time" ) // broadcastClient implements the [broadcast.Channel] interface for sending/ @@ -44,7 +43,7 @@ func NewBroadcastChannel(channel *crypto.Channel, net Client, // Add channel's identity net.AddIdentityWithHistory(channel.ReceptionID, identity.Forever, - time.Now().Add(-500*time.Second), true) + channel.Created, true) jww.INFO.Printf("New broadcast channel client created for channel %q (%s)", channel.Name, channel.ReceptionID) diff --git a/channels/joinedChannel_test.go b/channels/joinedChannel_test.go index e2af5aaa6..e26807719 100644 --- a/channels/joinedChannel_test.go +++ b/channels/joinedChannel_test.go @@ -580,7 +580,7 @@ func newTestChannel(name, description string, rng csprng.Source, level cryptoBroadcast.PrivacyLevel) ( *cryptoBroadcast.Channel, rsa.PrivateKey, error) { c, pk, err := cryptoBroadcast.NewChannelVariableKeyUnsafe( - name, description, level, 1000, 512, rng) + name, description, level, time.Now(), 1000, 512, rng) return c, pk, err } diff --git a/go.mod b/go.mod index 86c8bb0e6..ff2b19918 100644 --- a/go.mod +++ b/go.mod @@ -15,7 +15,7 @@ require ( github.com/stretchr/testify v1.8.0 gitlab.com/elixxir/bloomfilter v0.0.0-20211222005329-7d931ceead6f gitlab.com/elixxir/comms v0.0.4-0.20221025020711-eba3adc4eb06 - gitlab.com/elixxir/crypto v0.0.7-0.20221025020525-985806badd65 + gitlab.com/elixxir/crypto v0.0.7-0.20221025180839-3d8948607447 gitlab.com/elixxir/ekv v0.2.1 gitlab.com/elixxir/primitives v0.0.3-0.20221025020430-f5d2eb330fbc gitlab.com/xx_network/comms v0.0.4-0.20221025020408-9b62d4c2e700 diff --git a/go.sum b/go.sum index 9ad9976a6..2597a5c12 100644 --- a/go.sum +++ b/go.sum @@ -512,6 +512,8 @@ gitlab.com/elixxir/crypto v0.0.0-20200804182833-984246dea2c4/go.mod h1:ucm9SFKJo gitlab.com/elixxir/crypto v0.0.3/go.mod h1:ZNgBOblhYToR4m8tj4cMvJ9UsJAUKq+p0gCp07WQmhA= gitlab.com/elixxir/crypto v0.0.7-0.20221025020525-985806badd65 h1:CWBU/BFw0II7q4ZKkLUVMSCzn2sRVCbbEiN4EJJ/vu0= gitlab.com/elixxir/crypto v0.0.7-0.20221025020525-985806badd65/go.mod h1:NImDa7951+jSolkYN/BBUm6qG6f+k0hsFZOCIxBlLhE= +gitlab.com/elixxir/crypto v0.0.7-0.20221025180839-3d8948607447 h1:hFOOOGiVB9XtzSM//aClSJ+5nf4JSmmCkoWcc635W8I= +gitlab.com/elixxir/crypto v0.0.7-0.20221025180839-3d8948607447/go.mod h1:NImDa7951+jSolkYN/BBUm6qG6f+k0hsFZOCIxBlLhE= gitlab.com/elixxir/ekv v0.2.1 h1:dtwbt6KmAXG2Tik5d60iDz2fLhoFBgWwST03p7T+9Is= gitlab.com/elixxir/ekv v0.2.1/go.mod h1:USLD7xeDnuZEavygdrgzNEwZXeLQJK/w1a+htpN+JEU= gitlab.com/elixxir/primitives v0.0.0-20200731184040-494269b53b4d/go.mod h1:OQgUZq7SjnE0b+8+iIAT2eqQF+2IFHn73tOo+aV11mg= -- GitLab