fvm

package
v1.16.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2024 License: Apache-2.0, MIT Imports: 37 Imported by: 1

Documentation

Index

Constants

View Source
const MaxEventSliceLength = 6_000_000

Variables

View Source
var (
	StatApplied uint64
)

stat counters

Functions

func NewDualExecutionFVM added in v1.8.0

func NewDualExecutionFVM(ctx context.Context, opts *vm.VmOption) (vm.Interface, error)

func NewVM

func NewVM(ctx context.Context, opts vm.VmOption) (vm.Interface, error)

Types

type FVM

type FVM struct {
	// contains filtered or unexported fields
}

func NewDebugFVM added in v1.8.0

func NewDebugFVM(ctx context.Context, opts *vm.VmOption) (*FVM, error)

func NewFVM

func NewFVM(ctx context.Context, opts *vm.VmOption) (*FVM, error)

func (*FVM) ApplyImplicitMessage

func (fvm *FVM) ApplyImplicitMessage(ctx context.Context, cmsg types.ChainMsg) (*vm.Ret, error)

func (*FVM) ApplyMessage

func (fvm *FVM) ApplyMessage(ctx context.Context, cmsg types.ChainMsg) (*vm.Ret, error)

func (*FVM) Flush

func (fvm *FVM) Flush(ctx context.Context) (cid.Cid, error)

type FvmExtern

type FvmExtern struct {
	vm.ChainRandomness
	blockstoreutil.Blockstore
	// contains filtered or unexported fields
}

func (*FvmExtern) TipsetCid added in v1.10.0

func (x *FvmExtern) TipsetCid(ctx context.Context, epoch abi.ChainEpoch) (cid.Cid, error)

func (*FvmExtern) VerifyConsensusFault

func (x *FvmExtern) VerifyConsensusFault(ctx context.Context, a, b, extra []byte) (*ffi_cgo.ConsensusFault, int64)

VerifyConsensusFault is similar to the one in syscalls.go used by the LegacyVM, except it never errors Errors are logged and "no fault" is returned, which is functionally what go-actors does anyway

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL