@@ -32,7 +32,7 @@ type selectionParameterListFn func(addr []basics.Address) (bool, []BalanceRecord
32
32
33
33
var proto = config .Consensus [protocol .ConsensusCurrentVersion ]
34
34
35
- func newAccount (t testing.TB , gen io.Reader , latest basics. Round , keyBatchesForward uint ) (basics.Address , * crypto.SignatureSecrets , * crypto.VrfPrivkey ) {
35
+ func newAccount (t testing.TB , gen io.Reader ) (basics.Address , * crypto.SignatureSecrets , * crypto.VrfPrivkey ) {
36
36
var seed crypto.Seed
37
37
gen .Read (seed [:])
38
38
s := crypto .GenerateSignatureSecrets (seed )
@@ -49,10 +49,10 @@ func newAccount(t testing.TB, gen io.Reader, latest basics.Round, keyBatchesForw
49
49
// formerly, testingenv, generated transactions and one-time secrets as well,
50
50
// but they were not used by the tests.
51
51
func testingenv (t testing.TB , numAccounts , numTxs int , seedGen io.Reader ) (selectionParameterFn , selectionParameterListFn , basics.Round , []basics.Address , []* crypto.SignatureSecrets , []* crypto.VrfPrivkey ) {
52
- return testingenvMoreKeys (t , numAccounts , numTxs , uint ( 5 ), seedGen )
52
+ return testingenvMoreKeys (t , numAccounts , numTxs , seedGen )
53
53
}
54
54
55
- func testingenvMoreKeys (t testing.TB , numAccounts , numTxs int , keyBatchesForward uint , seedGen io.Reader ) (selectionParameterFn , selectionParameterListFn , basics.Round , []basics.Address , []* crypto.SignatureSecrets , []* crypto.VrfPrivkey ) {
55
+ func testingenvMoreKeys (t testing.TB , numAccounts , numTxs int , seedGen io.Reader ) (selectionParameterFn , selectionParameterListFn , basics.Round , []basics.Address , []* crypto.SignatureSecrets , []* crypto.VrfPrivkey ) {
56
56
if seedGen == nil {
57
57
seedGen = rand .New (rand .NewSource (1 )) // same source as setting GODEBUG=randautoseed=0, same as pre-Go 1.20 default seed
58
58
}
@@ -70,7 +70,7 @@ func testingenvMoreKeys(t testing.TB, numAccounts, numTxs int, keyBatchesForward
70
70
lookback := basics .Round (2 * proto .SeedRefreshInterval + proto .SeedLookback + 1 )
71
71
var total basics.MicroAlgos
72
72
for i := 0 ; i < P ; i ++ {
73
- addr , sigSec , vrfSec := newAccount (t , gen , lookback , keyBatchesForward )
73
+ addr , sigSec , vrfSec := newAccount (t , gen )
74
74
addrs [i ] = addr
75
75
secrets [i ] = sigSec
76
76
vrfSecrets [i ] = vrfSec
0 commit comments