Documentation ¶
Index ¶
- Variables
- func FakeGenesisStore(num idx.Validator, balance, stake *big.Int) *genesisstore.Store
- func FakeGenesisStoreWithRules(num idx.Validator, balance, stake *big.Int, rules opera.Rules) *genesisstore.Store
- func FakeGenesisStoreWithRulesAndStart(num idx.Validator, balance, stake *big.Int, rules opera.Rules, epoch idx.Epoch, ...) *genesisstore.Store
- func FakeKey(n idx.ValidatorID) *ecdsa.PrivateKey
- func GetFakeValidators(num idx.Validator) gpos.Validators
- func GetGenesisTxs(sealedEpoch idx.Epoch, validators gpos.Validators, totalSupply *big.Int, ...) types.Transactions
Constants ¶
This section is empty.
Variables ¶
View Source
var (
FakeGenesisTime = inter.Timestamp(1608600000 * time.Second)
)
Functions ¶
func FakeGenesisStore ¶
func FakeKey ¶
func FakeKey(n idx.ValidatorID) *ecdsa.PrivateKey
FakeKey gets n-th fake private key.
func GetFakeValidators ¶
func GetFakeValidators(num idx.Validator) gpos.Validators
func GetGenesisTxs ¶
func GetGenesisTxs(sealedEpoch idx.Epoch, validators gpos.Validators, totalSupply *big.Int, delegations []drivercall.Delegation, driverOwner common.Address) types.Transactions
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.