Skip to content

Commit 4ba3d33

Browse files
committed
update per peer review
1 parent 3ce0afb commit 4ba3d33

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

data/account/participation_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -462,9 +462,8 @@ func TestKeyregValidityOverLimit(t *testing.T) {
462462
partitiontest.PartitionTest(t)
463463
a := require.New(t)
464464

465-
// TODO: change to ConsensusCurrentVersion when updated
466-
maxValidPeriod := config.Consensus[protocol.ConsensusFuture].MaxKeyregValidPeriod
467-
dilution := config.Consensus[protocol.ConsensusFuture].DefaultKeyDilution
465+
maxValidPeriod := config.Consensus[protocol.ConsensusCurrentVersion].MaxKeyregValidPeriod
466+
dilution := config.Consensus[protocol.ConsensusCurrentVersion].DefaultKeyDilution
468467

469468
var address basics.Address
470469
crypto.RandBytes(address[:])

ledger/accountdb_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ func TestAccountDBRound(t *testing.T) {
290290
}
291291

292292
func TestAccountStorageWithStateProofID(t *testing.T) {
293-
proto := config.Consensus[protocol.ConsensusFuture]
293+
proto := config.Consensus[protocol.ConsensusCurrentVersion]
294294

295295
dbs, _ := dbOpenTest(t, true)
296296
setDbLogging(t, dbs)

ledger/apply/keyreg_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,15 +194,15 @@ func TestStateProofPKKeyReg(t *testing.T) {
194194

195195
acct, err := mockBal.Get(tx.Src(), false)
196196
require.NoError(t, err)
197-
require.Equal(t, true, acct.StateProofID.IsEmpty())
197+
require.True(t, acct.StateProofID.IsEmpty())
198198

199199
mockBal = makeMockBalances(protocol.ConsensusCurrentVersion)
200200
err = Keyreg(tx.KeyregTxnFields, tx.Header, mockBal, transactions.SpecialAddresses{FeeSink: feeSink}, nil, basics.Round(0))
201201
require.NoError(t, err)
202202

203203
acct, err = mockBal.Get(tx.Src(), false)
204204
require.NoError(t, err)
205-
require.Equal(t, false, acct.StateProofID.IsEmpty())
205+
require.False(t, acct.StateProofID.IsEmpty())
206206
}
207207

208208
func createTestTxn(t *testing.T, src basics.Address, secretParticipation *crypto.SignatureSecrets, vrfSecrets *crypto.VRFSecrets) transactions.Transaction {

test/e2e-go/restAPI/restClient_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ func TestAccountParticipationInfo(t *testing.T) {
554554
lastRound := basics.Round(params.LastRound + 1000)
555555
dilution := uint64(100)
556556
var stateproof merklesignature.Verifier
557-
stateproof[0] = 1 // change some byte so the stateproof is not considered empty (required since consensus v32)
557+
stateproof[0] = 1 // change some byte so the stateproof is not considered empty (required since consensus v31)
558558

559559
randomVotePKStr := randomString(32)
560560
var votePK crypto.OneTimeSignatureVerifier

0 commit comments

Comments
 (0)