mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 23:18:15 -05:00
Former-commit-id: 087f9d471291ba6361c8d8e905935227849d57ea [formerly 79568804120e8aa8914977967e3233ba5397b26c] Former-commit-id: aeabcb2d2ca2622defd3f04420cde73df42be53f
27 lines
799 B
Go
27 lines
799 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.HexToAddress("0xd76b5bf01b55d75733de3997f54a7becc2be3f4a") // 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)
|
|
)
|