prysm-pulse/sharding/config.go
Preston Van Loon 7e09ed395b contract deploy somewhat working
Former-commit-id: 2bccce337d29f12b7a96d5d79be6528c1ddfe6e6 [formerly 853da49db264a445f955c21294909909c59b56f7]
Former-commit-id: d67aece06f67fc24d0a7036646ded876218ce84f
2018-01-15 16:39:00 -05:00

27 lines
802 B
Go

package sharding
import (
"math/big"
"github.com/ethereum/go-ethereum/common"
)
var (
// Number of network shards
shardCount = 100
// Address of the validator management contract
validatorManagerAddress = common.StringToAddress("0x315e4c3c34e27Dd28c7dCC27eC233618e76adcAc") // TODO
// 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
// Gas limit to create contract
contractGasLimit = uint64(4700000) // Max is 4712388
// Gas price for contract creation
contractGasPrice = new(big.Int).SetInt64(18000000000)
)