Skip to content
Snippets Groups Projects
Commit e05cd097 authored by benjamin's avatar benjamin
Browse files

updatred for creation timestamp in channel

parent dcb3c61a
No related branches found
No related tags found
2 merge requests!510Release,!428built the system to sequentually pick up old ephemerals, breaks interfaces and tests
...@@ -14,7 +14,6 @@ import ( ...@@ -14,7 +14,6 @@ import (
"gitlab.com/elixxir/client/cmix/message" "gitlab.com/elixxir/client/cmix/message"
crypto "gitlab.com/elixxir/crypto/broadcast" crypto "gitlab.com/elixxir/crypto/broadcast"
"gitlab.com/elixxir/crypto/fastRNG" "gitlab.com/elixxir/crypto/fastRNG"
"time"
) )
// broadcastClient implements the [broadcast.Channel] interface for sending/ // broadcastClient implements the [broadcast.Channel] interface for sending/
...@@ -44,7 +43,7 @@ func NewBroadcastChannel(channel *crypto.Channel, net Client, ...@@ -44,7 +43,7 @@ func NewBroadcastChannel(channel *crypto.Channel, net Client,
// Add channel's identity // Add channel's identity
net.AddIdentityWithHistory(channel.ReceptionID, identity.Forever, 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)", jww.INFO.Printf("New broadcast channel client created for channel %q (%s)",
channel.Name, channel.ReceptionID) channel.Name, channel.ReceptionID)
......
...@@ -580,7 +580,7 @@ func newTestChannel(name, description string, rng csprng.Source, ...@@ -580,7 +580,7 @@ func newTestChannel(name, description string, rng csprng.Source,
level cryptoBroadcast.PrivacyLevel) ( level cryptoBroadcast.PrivacyLevel) (
*cryptoBroadcast.Channel, rsa.PrivateKey, error) { *cryptoBroadcast.Channel, rsa.PrivateKey, error) {
c, pk, err := cryptoBroadcast.NewChannelVariableKeyUnsafe( c, pk, err := cryptoBroadcast.NewChannelVariableKeyUnsafe(
name, description, level, 1000, 512, rng) name, description, level, time.Now(), 1000, 512, rng)
return c, pk, err return c, pk, err
} }
......
...@@ -15,7 +15,7 @@ require ( ...@@ -15,7 +15,7 @@ require (
github.com/stretchr/testify v1.8.0 github.com/stretchr/testify v1.8.0
gitlab.com/elixxir/bloomfilter v0.0.0-20211222005329-7d931ceead6f gitlab.com/elixxir/bloomfilter v0.0.0-20211222005329-7d931ceead6f
gitlab.com/elixxir/comms v0.0.4-0.20221025020711-eba3adc4eb06 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/ekv v0.2.1
gitlab.com/elixxir/primitives v0.0.3-0.20221025020430-f5d2eb330fbc gitlab.com/elixxir/primitives v0.0.3-0.20221025020430-f5d2eb330fbc
gitlab.com/xx_network/comms v0.0.4-0.20221025020408-9b62d4c2e700 gitlab.com/xx_network/comms v0.0.4-0.20221025020408-9b62d4c2e700
......
...@@ -512,6 +512,8 @@ gitlab.com/elixxir/crypto v0.0.0-20200804182833-984246dea2c4/go.mod h1:ucm9SFKJo ...@@ -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.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 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.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 h1:dtwbt6KmAXG2Tik5d60iDz2fLhoFBgWwST03p7T+9Is=
gitlab.com/elixxir/ekv v0.2.1/go.mod h1:USLD7xeDnuZEavygdrgzNEwZXeLQJK/w1a+htpN+JEU= 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.com/elixxir/primitives v0.0.0-20200731184040-494269b53b4d/go.mod h1:OQgUZq7SjnE0b+8+iIAT2eqQF+2IFHn73tOo+aV11mg=
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment