Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MigrateStateTree ¶
func MigrateStateTree(ctx context.Context, store cbor.IpldStore, stateRootIn cid.Cid, priorEpoch abi.ChainEpoch, _ Config) (cid.Cid, error)
Migrates the filecoin state tree starting from the global state tree and upgrading all actor state.
Types ¶
type Config ¶
type Config struct{}
Config parameterizes a state tree migration
func DefaultConfig ¶
func DefaultConfig() Config
type MigrationInfo ¶
type MigrationInfo struct {
// contains filtered or unexported fields
}
type PowerMigrator ¶
type PowerMigrator struct{}
func (PowerMigrator) ComputeClaimsStats ¶
func (PowerMigrator) MigrateState ¶
func (m PowerMigrator) MigrateState(ctx context.Context, store cbor.IpldStore, head cid.Cid, info MigrationInfo) (*StateMigrationResult, error)
type StateMigration ¶
type StateMigration interface { // Loads an actor's state from an input store and writes new state to an output store. // Returns the new state head CID. MigrateState(ctx context.Context, store cbor.IpldStore, head cid.Cid, info MigrationInfo) (result *StateMigrationResult, err error) }
type StateMigrationResult ¶
type StateMigrationResult struct { NewHead cid.Cid Transfer abi.TokenAmount }
Click to show internal directories.
Click to hide internal directories.