thread epoch timestamp through vmopts
This commit is contained in:
parent
ee83dceef0
commit
a2a9147790
@ -93,6 +93,7 @@ func (t *TipSetExecutor) ApplyBlocks(ctx context.Context,
|
|||||||
vmopt := &vm.VMOpts{
|
vmopt := &vm.VMOpts{
|
||||||
StateBase: base,
|
StateBase: base,
|
||||||
Epoch: e,
|
Epoch: e,
|
||||||
|
Timestamp: ts.MinTimestamp(),
|
||||||
Rand: r,
|
Rand: r,
|
||||||
Bstore: sm.ChainStore().StateBlockstore(),
|
Bstore: sm.ChainStore().StateBlockstore(),
|
||||||
Actors: NewActorRegistry(),
|
Actors: NewActorRegistry(),
|
||||||
|
@ -81,6 +81,7 @@ func (sm *StateManager) Call(ctx context.Context, msg *types.Message, ts *types.
|
|||||||
vmopt := &vm.VMOpts{
|
vmopt := &vm.VMOpts{
|
||||||
StateBase: bstate,
|
StateBase: bstate,
|
||||||
Epoch: vmHeight,
|
Epoch: vmHeight,
|
||||||
|
Timestamp: ts.MinTimestamp(),
|
||||||
Rand: rand.NewStateRand(sm.cs, ts.Cids(), sm.beacon, sm.GetNetworkVersion),
|
Rand: rand.NewStateRand(sm.cs, ts.Cids(), sm.beacon, sm.GetNetworkVersion),
|
||||||
Bstore: sm.cs.StateBlockstore(),
|
Bstore: sm.cs.StateBlockstore(),
|
||||||
Actors: sm.tsExec.NewActorRegistry(),
|
Actors: sm.tsExec.NewActorRegistry(),
|
||||||
@ -218,6 +219,7 @@ func (sm *StateManager) CallWithGas(ctx context.Context, msg *types.Message, pri
|
|||||||
vmopt := &vm.VMOpts{
|
vmopt := &vm.VMOpts{
|
||||||
StateBase: stateCid,
|
StateBase: stateCid,
|
||||||
Epoch: vmHeight,
|
Epoch: vmHeight,
|
||||||
|
Timestamp: ts.MinTimestamp(),
|
||||||
Rand: r,
|
Rand: r,
|
||||||
Bstore: buffStore,
|
Bstore: buffStore,
|
||||||
Actors: sm.tsExec.NewActorRegistry(),
|
Actors: sm.tsExec.NewActorRegistry(),
|
||||||
|
@ -87,6 +87,7 @@ func ComputeState(ctx context.Context, sm *StateManager, height abi.ChainEpoch,
|
|||||||
vmopt := &vm.VMOpts{
|
vmopt := &vm.VMOpts{
|
||||||
StateBase: base,
|
StateBase: base,
|
||||||
Epoch: height,
|
Epoch: height,
|
||||||
|
Timestamp: ts.MinTimestamp(),
|
||||||
Rand: r,
|
Rand: r,
|
||||||
Bstore: sm.cs.StateBlockstore(),
|
Bstore: sm.cs.StateBlockstore(),
|
||||||
Actors: sm.tsExec.NewActorRegistry(),
|
Actors: sm.tsExec.NewActorRegistry(),
|
||||||
|
@ -298,6 +298,7 @@ func defaultFVMOpts(ctx context.Context, opts *VMOpts) (*ffi.FVMOpts, error) {
|
|||||||
epoch: opts.Epoch,
|
epoch: opts.Epoch,
|
||||||
},
|
},
|
||||||
Epoch: opts.Epoch,
|
Epoch: opts.Epoch,
|
||||||
|
Timestamp: opts.Timestamp,
|
||||||
BaseFee: opts.BaseFee,
|
BaseFee: opts.BaseFee,
|
||||||
BaseCircSupply: circToReport,
|
BaseCircSupply: circToReport,
|
||||||
NetworkVersion: opts.NetworkVersion,
|
NetworkVersion: opts.NetworkVersion,
|
||||||
|
@ -215,6 +215,7 @@ type LegacyVM struct {
|
|||||||
type VMOpts struct {
|
type VMOpts struct {
|
||||||
StateBase cid.Cid
|
StateBase cid.Cid
|
||||||
Epoch abi.ChainEpoch
|
Epoch abi.ChainEpoch
|
||||||
|
Timestamp uint64
|
||||||
Rand Rand
|
Rand Rand
|
||||||
Bstore blockstore.Blockstore
|
Bstore blockstore.Blockstore
|
||||||
Actors *ActorRegistry
|
Actors *ActorRegistry
|
||||||
|
Loading…
Reference in New Issue
Block a user