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
|
|
|
|
shardCount = 100
|
|
|
|
// Address of the validator management contract
|
2018-01-17 03:59:35 +00:00
|
|
|
validatorManagerAddress = common.HexToAddress("0xd76b5bf01b55d75733de3997f54a7becc2be3f4a") // TODO
|
2018-01-15 00:10:02 +00:00
|
|
|
// Gas limit for verifying signatures
|
|
|
|
sigGasLimit = 40000
|
|
|
|
// Number of blocks in a period
|
|
|
|
periodLength = 5
|
|
|
|
// Number of periods to lookahead for ??? TODO(prestonvanloon) finish this comment.
|
|
|
|
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
|
|
|
|
// Gas price for contract creation
|
|
|
|
contractGasPrice = new(big.Int).SetInt64(18000000000)
|
2018-01-15 00:10:02 +00:00
|
|
|
)
|