Skip to content

Commit

Permalink
fixing test_validators.nim
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmer committed Aug 16, 2024
1 parent f2281e0 commit abbc799
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/wakunode2/test_validators.nim
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ suite "WakuNode2 - Validators":
.fromHex("5526a8990317c9b7b58d07843d270f9cd1d9aaee129294c1c478abf7261dd9e6")
.expect("valid key")
let publicKey = secretKey.toPublicKey()
let topicsPrivateKeys = {spamProtectedShard: secretKey}.toTable
let topicsPublicKeys = {spamProtectedShard: publicKey}.toTable
let shardsPrivateKeys = {spamProtectedShard: secretKey}.toTable
let shardsPublicKeys = {spamProtectedShard: publicKey}.toTable

# Non whitelisted secret key
let wrongSecretKey = SkSecretKey
Expand Down Expand Up @@ -272,8 +272,8 @@ suite "WakuNode2 - Validators":
.fromHex("5526a8990317c9b7b58d07843d270f9cd1d9aaee129294c1c478abf7261dd9e6")
.expect("valid key")
let publicKey = secretKey.toPublicKey()
let topicsPrivateKeys = {spamProtectedShard: secretKey}.toTable
let topicsPublicKeys = {spamProtectedShard: publicKey}.toTable
let shardsPrivateKeys = {spamProtectedShard: secretKey}.toTable
let shardsPublicKeys = {spamProtectedShard: publicKey}.toTable

# Non whitelisted secret key
let wrongSecretKey = SkSecretKey
Expand All @@ -299,7 +299,7 @@ suite "WakuNode2 - Validators":
for node in nodes:
var signedShards: seq[ProtectedShard]
for topic, publicKey in shardsPublicKeys:
signedTopics.add(ProtectedShard(shard: topic.shardId, key: publicKey))
signedShards.add(ProtectedShard(shard: topic.shardId, key: publicKey))
node.wakuRelay.addSignedShardsValidator(
signedShards, spamProtectedShard.clusterId
)
Expand Down

0 comments on commit abbc799

Please sign in to comment.