[config] use a constant to define large block per epoch

Signed-off-by: Leo Chen <leo@harmony.one>
pull/1230/head
Leo Chen 5 years ago
parent d6e091ce74
commit 378c043778
  1. 7
      internal/configs/sharding/fixedschedule.go

@ -4,6 +4,11 @@ import (
"math/big"
)
const (
// VLBPE is a Very Large Block Per Epoch
VLBPE = 1000000000000
)
type fixedSchedule struct {
instance Instance
}
@ -15,7 +20,7 @@ func (s fixedSchedule) InstanceForEpoch(epoch *big.Int) Instance {
}
func (s fixedSchedule) BlocksPerEpoch() uint64 {
return 1000000000000
return VLBPE
}
// NewFixedSchedule returns a sharding configuration schedule that uses the

Loading…
Cancel
Save