Skip to content

Commit

Permalink
v40
Browse files Browse the repository at this point in the history
  • Loading branch information
jannotti committed Jan 10, 2024
1 parent c35da74 commit 1afb148
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ledger/eval_simple_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,8 @@ func TestAbsentTracking(t *testing.T) {
genBalances, addrs, _ := ledgertesting.NewTestGenesis(func(cfg *ledgertesting.GenesisCfg) {
cfg.OnlineCount = 2 // So we know proposer should propose every 2 rounds, on average
})
// Absentee checking begins in v39. Start checking in v38 to test that is unchanged.
ledgertesting.TestConsensusRange(t, 38, 0, func(t *testing.T, ver int, cv protocol.ConsensusVersion, cfg config.Local) {
checkingBegins := 40
ledgertesting.TestConsensusRange(t, checkingBegins-1, 0, func(t *testing.T, ver int, cv protocol.ConsensusVersion, cfg config.Local) {
dl := NewDoubleLedger(t, genBalances, cv, cfg)
defer dl.Close()

Expand Down Expand Up @@ -418,7 +418,7 @@ func TestAbsentTracking(t *testing.T) {

prp := lookup(t, dl.validator, proposer)

if ver >= 39 {
if ver >= checkingBegins {
// version sanity check
require.True(t, dl.generator.GenesisProto().EnableAbsenteeTracking())
require.NotZero(t, prp.LastProposed)
Expand Down

0 comments on commit 1afb148

Please sign in to comment.