Skip to content

Commit

Permalink
more conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
jannotti committed Nov 21, 2024
1 parent ba3c96c commit 9fa93f0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ledger/heartbeat_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func TestHeartBeat(t *testing.T) {
Sender: addrs[1],
HbAddress: addrs[1],
HbSeed: b0.Seed,
HbProof: otss.Sign(firstID, b0.Seed),
HbProof: otss.Sign(firstID, b0.Seed).ToHeartbeatProof(),
},
"does not match round 1's seed")

Expand All @@ -105,7 +105,7 @@ func TestHeartBeat(t *testing.T) {
Sender: addrs[1],
HbAddress: addrs[1],
HbSeed: b1.Seed,
HbProof: otss.Sign(basics.OneTimeIDForRound(30, kd), b0.Seed),
HbProof: otss.Sign(basics.OneTimeIDForRound(30, kd), b0.Seed).ToHeartbeatProof(),
},
"failed verification")

Expand All @@ -116,7 +116,7 @@ func TestHeartBeat(t *testing.T) {
Sender: addrs[1],
HbAddress: addrs[1],
HbSeed: b0.Seed,
HbProof: otss.Sign(basics.OneTimeIDForRound(30, kd), b1.Seed),
HbProof: otss.Sign(basics.OneTimeIDForRound(30, kd), b1.Seed).ToHeartbeatProof(),
},
"does not match round 1's")

Expand All @@ -127,7 +127,7 @@ func TestHeartBeat(t *testing.T) {
Sender: addrs[1],
HbAddress: addrs[1],
HbSeed: b1.Seed,
HbProof: otss.Sign(basics.OneTimeIDForRound(30, kd), b1.Seed),
HbProof: otss.Sign(basics.OneTimeIDForRound(30, kd), b1.Seed).ToHeartbeatProof(),
},
"failed verification")

Expand All @@ -138,7 +138,7 @@ func TestHeartBeat(t *testing.T) {
Sender: addrs[1],
HbAddress: addrs[1],
HbSeed: b1.Seed,
HbProof: otss.Sign(basics.OneTimeIDForRound(30, kd), b1.Seed),
HbProof: otss.Sign(basics.OneTimeIDForRound(30, kd), b1.Seed).ToHeartbeatProof(),
})

})
Expand Down

0 comments on commit 9fa93f0

Please sign in to comment.