2018-01-15 00:10:02 +00:00
|
|
|
package sharding
|
|
|
|
|
2018-01-15 21:39:00 +00:00
|
|
|
import (
|
|
|
|
"math/big"
|
|
|
|
|
|
|
|
"github.com/ethereum/go-ethereum/common"
|
|
|
|
)
|
2018-01-15 00:10:02 +00:00
|
|
|
|
|
|
|
var (
|
|
|
|
// Number of network shards
|
2018-02-06 20:04:45 +00:00
|
|
|
shardCount = int64(100)
|
2018-01-15 00:10:02 +00:00
|
|
|
// Address of the validator management contract
|
2018-01-17 04:09:16 +00:00
|
|
|
validatorManagerAddress = common.HexToAddress("0x0") // TODO
|
2018-01-15 00:10:02 +00:00
|
|
|
// Gas limit for verifying signatures
|
|
|
|
sigGasLimit = 40000
|
|
|
|
// Number of blocks in a period
|
2018-02-06 20:04:45 +00:00
|
|
|
periodLength = int64(5)
|
2018-01-21 00:10:12 +00:00
|
|
|
// Number of periods ahead of current period which the contract is able to return the collator of that period.
|
2018-01-15 00:10:02 +00:00
|
|
|
lookaheadPeriods = 4
|
|
|
|
// Required deposit size in wei
|
|
|
|
depositSize = new(big.Int).Exp(big.NewInt(10), big.NewInt(20), nil) // 100 ETH
|
2018-01-15 21:39:00 +00:00
|
|
|
// Gas limit to create contract
|
|
|
|
contractGasLimit = uint64(4700000) // Max is 4712388
|
2018-01-15 00:10:02 +00:00
|
|
|
)
|