Skip to content
Snippets Groups Projects
Commit 2705baf6 authored by Jono Wenger's avatar Jono Wenger
Browse files

Set checkedRounds when creating a new client

parent c39880bb
No related branches found
No related tags found
No related merge requests found
......@@ -25,6 +25,7 @@ import (
"gitlab.com/elixxir/crypto/cyclic"
"gitlab.com/elixxir/crypto/fastRNG"
"gitlab.com/elixxir/ekv"
"gitlab.com/elixxir/primitives/knownRounds"
"gitlab.com/xx_network/crypto/csprng"
"gitlab.com/xx_network/crypto/large"
"gitlab.com/xx_network/crypto/signature/rsa"
......@@ -128,6 +129,11 @@ func New(baseDir, password string, u userInterface.User, cmixGrp,
return nil, errors.WithMessage(err, "Failed to create raw critical message buffer")
}
s.checkedRounds, err = utility.NewKnownRounds(s.kv, checkedRoundsKey, knownRounds.NewKnownRound(CheckRoundsMaxSize))
if err != nil {
return nil, errors.WithMessage(err, "Failed to create checked rounds buffer")
}
s.conversations = conversation.NewStore(s.kv)
s.partition = partition.New(s.kv)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment