mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-31 23:41:22 +00:00
6ffb46a90a
Former-commit-id: e9b45d6873a17f40b3e30bcea008278fadb6d865 [formerly 31ba86dba21639e64130e2add6b9c1cce2521020] Former-commit-id: e041f8f601cdc54fe020a15a199c382a6b0f91e5
25 lines
696 B
Go
25 lines
696 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("0x0") // TODO
|
|
// Gas limit for verifying signatures
|
|
sigGasLimit = 40000
|
|
// Number of blocks in a period
|
|
periodLength = 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
|
|
)
|