Documentation ¶
Index ¶
- Constants
- Variables
- func MakeInitialStateTree(ctx context.Context, bs bstore.Blockstore, template genesis.Template) (*state.StateTree, map[address.Address]address.Address, error)
- func MinerAddress(genesisIndex uint64) address.Address
- func SetupCronActor(bs bstore.Blockstore) (*types.Actor, error)
- func SetupInitActor(bs bstore.Blockstore, netname string, initialActors []genesis.Actor, ...) (int64, *types.Actor, map[address.Address]address.Address, error)
- func SetupRewardActor(bs bstore.Blockstore, qaPower big.Int) (*types.Actor, error)
- func SetupStorageMarketActor(bs bstore.Blockstore) (*types.Actor, error)
- func SetupStorageMiners(ctx context.Context, cs *store.ChainStore, sroot cid.Cid, ...) (cid.Cid, error)
- func SetupStoragePowerActor(bs bstore.Blockstore) (*types.Actor, error)
- func SetupSystemActor(bs bstore.Blockstore) (*types.Actor, error)
- func SetupVerifiedRegistryActor(bs bstore.Blockstore) (*types.Actor, error)
- func VerifyPreSealedData(ctx context.Context, cs *store.ChainStore, stateroot cid.Cid, ...) (cid.Cid, error)
- type GenesisBootstrap
Constants ¶
View Source
const AccountStart = 100
View Source
const MaxAccounts = MinerStart - AccountStart
View Source
const MinerStart = 1000
Variables ¶
View Source
var GenesisNetworkVersion = func() network.Version { if build.UseNewestNetwork() { return build.NewestNetworkVersion } return network.Version1 }() // TODO: Get from build/
View Source
var RootVerifierID address.Address
Functions ¶
func MakeInitialStateTree ¶
func MinerAddress ¶
func MinerAddress(genesisIndex uint64) address.Address
func SetupCronActor ¶
func SetupCronActor(bs bstore.Blockstore) (*types.Actor, error)
func SetupInitActor ¶
func SetupRewardActor ¶
func SetupStorageMarketActor ¶
func SetupStorageMarketActor(bs bstore.Blockstore) (*types.Actor, error)
func SetupStorageMiners ¶
func SetupStoragePowerActor ¶
func SetupStoragePowerActor(bs bstore.Blockstore) (*types.Actor, error)
func SetupSystemActor ¶
func SetupSystemActor(bs bstore.Blockstore) (*types.Actor, error)
func SetupVerifiedRegistryActor ¶
func SetupVerifiedRegistryActor(bs bstore.Blockstore) (*types.Actor, error)
func VerifyPreSealedData ¶
Types ¶
type GenesisBootstrap ¶
type GenesisBootstrap struct {
Genesis *types.BlockHeader
}
func MakeGenesisBlock ¶
func MakeGenesisBlock(ctx context.Context, bs bstore.Blockstore, sys vm.SyscallBuilder, template genesis.Template) (*GenesisBootstrap, error)
Click to show internal directories.
Click to hide internal directories.