mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-04 00:44:27 +00:00
af7124e91f
Former-commit-id: 85344d0a515f1bc6d2ac32a43ac7b2fc96e477c5 [formerly ae47d11056c1c4ca49d254c25ab324240751b2dc] Former-commit-id: 2655a39f356563dbd37a5344a217f8ab5305d263
25 lines
705 B
Go
25 lines
705 B
Go
package sharding
|
|
|
|
import (
|
|
"math/big"
|
|
|
|
"github.com/ethereum/go-ethereum/common"
|
|
)
|
|
|
|
var (
|
|
// Number of network shards
|
|
shardCount = int64(100)
|
|
// 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
|
|
)
|