prysm-pulse/sharding/config.go
Preston Van Loon 3b0cd6f032 Add back go generate comment
Former-commit-id: bb4191598ca1d29bacd4ccdc0459cf650b121403 [formerly 6366f9aa7390814b83863cea0687c3de48c130ba]
Former-commit-id: dccf95e4ecc152133f544ea00127886cb96be740
2018-03-31 18:21:09 -04:00

27 lines
814 B
Go

package sharding
import (
"math/big"
"github.com/ethereum/go-ethereum/common"
)
//go:generate abigen --sol contracts/sharding_manager.sol --pkg contracts --out contracts/sharding_manager.go
var (
// Number of network shards
ShardCount = int64(1)
// Address of the sharding manager contract
ShardingManagerAddress = common.HexToAddress("0x0") // TODO
// Gas limit for verifying signatures
SigGasLimit = 40000
// Number of blocks in a period
PeriodLength = int64(5)
// Number of periods ahead of current period which the contract is able to return the collator of that period.
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
)