prysm-pulse/sharding/config.go
Raul Jordan 6fe43bd446 adjust code to reviews, abstract funcs, clean up files
Former-commit-id: ec19a9de17ec38c54af49684426345056fa3fb07 [formerly a8533d2bcc036bde18583abc4a157d63e552ee06]
Former-commit-id: b085ecaec184ad2c2370388c2717d1e6f8a2e04f
2018-02-06 14:04:45 -06:00

25 lines
710 B
Go

package sharding
import (
"math/big"
"github.com/ethereum/go-ethereum/common"
)
var (
// Number of network shards
shardCount = int64(100)
// Address of the validator management contract
validatorManagerAddress = 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
)