diff --git a/broadcast/client.go b/broadcast/client.go index e24c72248f6a7105b9bd6675b79a39a6c74134fd..678c7e9dccf7ef0322aea6369a92d6dcfde032ca 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 e2af5aaa6a4b808300777498e406eb43041ef924..e26807719b113a4b9e9637c83be428b293a41d16 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 86c8bb0e613356f1acab4c51d235bd4a8e450ac4..ff2b199186dfd6f5aa81b91170d59f903d06be25 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 9ad9976a69f119bc27c6ec2cfc6d4c1ed2ce000c..2597a5c1231516e046c341ee927ae87b85c59f53 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=