From 9d92b6eb9213cfd968fda564bc63fb16aa5bad5d Mon Sep 17 00:00:00 2001 From: vyzo Date: Fri, 4 Feb 2022 16:57:08 +0200 Subject: [PATCH] correctly wrap hotview in the context for compute_state --- chain/consensus/filcns/compute_state.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chain/consensus/filcns/compute_state.go b/chain/consensus/filcns/compute_state.go index 34bc439ac..44b792854 100644 --- a/chain/consensus/filcns/compute_state.go +++ b/chain/consensus/filcns/compute_state.go @@ -93,6 +93,7 @@ func (t *TipSetExecutor) ApplyBlocks(ctx context.Context, sm *stmgr.StateManager partDone() }() + ctx = blockstore.WithHotView(ctx) makeVmWithBaseStateAndEpoch := func(base cid.Cid, e abi.ChainEpoch) (*vm.VM, error) { vmopt := &vm.VMOpts{ StateBase: base, @@ -107,7 +108,7 @@ func (t *TipSetExecutor) ApplyBlocks(ctx context.Context, sm *stmgr.StateManager LookbackState: stmgr.LookbackStateGetterForTipset(sm, ts), } - return sm.VMConstructor()(blockstore.WithHotView(ctx), vmopt) + return sm.VMConstructor()(ctx, vmopt) } runCron := func(vmCron *vm.VM, epoch abi.ChainEpoch) error {