[config] P2 Testnet configs and tests

pull/2531/head
Daniel Van Der Maden 5 years ago
parent bb6578bcd4
commit ad4dbfd0c9
  1. 8
      core/core_test.go
  2. 4
      internal/configs/sharding/stress.go
  3. 4
      internal/configs/sharding/testnet.go

@ -39,22 +39,22 @@ func TestIsEpochBlock(t *testing.T) {
},
{
shardingconfig.TestnetSchedule,
blockNumbered(7),
blockNumbered(37),
false,
},
{
shardingconfig.TestnetSchedule,
blockNumbered(8),
blockNumbered(38),
true,
},
{
shardingconfig.TestnetSchedule,
blockNumbered(15),
blockNumbered(75),
false,
},
{
shardingconfig.TestnetSchedule,
blockNumbered(16),
blockNumbered(76),
true,
},
}

@ -16,8 +16,8 @@ var StressNetSchedule stressnetSchedule
type stressnetSchedule struct{}
const (
// ~64 sec epochs for P1 of open staking
stressnetBlocksPerEpoch = 8
// ~304 sec epochs for P2 of open staking
stressnetBlocksPerEpoch = 38
stressnetVdfDifficulty = 10000 // This takes about 20s to finish the vdf

@ -16,8 +16,8 @@ var TestnetSchedule testnetSchedule
type testnetSchedule struct{}
const (
// ~64 sec epochs for P1 of open staking
testnetBlocksPerEpoch = 8
// ~304 sec epochs for P2 of open staking
testnetBlocksPerEpoch = 38
testnetVdfDifficulty = 10000 // This takes about 20s to finish the vdf

Loading…
Cancel
Save