Merge pull request #8381 from filecoin-project/jen/ffi
chore: ffi: the latest fvm release
This commit is contained in:
commit
b8b33c4f06
@ -234,10 +234,17 @@ func NewFVM(ctx context.Context, opts *VMOpts) (*FVM, error) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fvm, err := ffi.CreateFVM(0,
|
fvmOpts := ffi.FVMOpts{
|
||||||
&FvmExtern{Rand: opts.Rand, Blockstore: opts.Bstore, lbState: opts.LookbackState, base: opts.StateBase, epoch: opts.Epoch, nv: opts.NetworkVersion},
|
FVMVersion: 0,
|
||||||
opts.Epoch, opts.BaseFee, circToReport, opts.NetworkVersion, opts.StateBase,
|
Externs: &FvmExtern{Rand: opts.Rand, Blockstore: opts.Bstore, lbState: opts.LookbackState, base: opts.StateBase, epoch: opts.Epoch, nv: opts.NetworkVersion},
|
||||||
)
|
Epoch: opts.Epoch,
|
||||||
|
BaseFee: opts.BaseFee,
|
||||||
|
BaseCircSupply: circToReport,
|
||||||
|
NetworkVersion: opts.NetworkVersion,
|
||||||
|
StateBase: opts.StateBase,
|
||||||
|
}
|
||||||
|
|
||||||
|
fvm, err := ffi.CreateFVM(&fvmOpts)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
2
extern/filecoin-ffi
vendored
2
extern/filecoin-ffi
vendored
@ -1 +1 @@
|
|||||||
Subproject commit c2668aa67ec589a773153022348b9c0ed6ed4d5d
|
Subproject commit 7f93fe5cf63aee1c6c21986903e870b02e337a16
|
Loading…
Reference in New Issue
Block a user