From 73c741f20ce4fff4bd15824dd75e2110bcfa4c8b Mon Sep 17 00:00:00 2001 From: vyzo Date: Fri, 4 Feb 2022 16:19:28 +0200 Subject: [PATCH] reify cold objects on block validation/application --- 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 f7f6284d0..34bc439ac 100644 --- a/chain/consensus/filcns/compute_state.go +++ b/chain/consensus/filcns/compute_state.go @@ -32,6 +32,7 @@ import ( /* inline-gen end */ + "github.com/filecoin-project/lotus/blockstore" "github.com/filecoin-project/lotus/build" "github.com/filecoin-project/lotus/chain/actors" "github.com/filecoin-project/lotus/chain/actors/builtin" @@ -106,7 +107,7 @@ func (t *TipSetExecutor) ApplyBlocks(ctx context.Context, sm *stmgr.StateManager LookbackState: stmgr.LookbackStateGetterForTipset(sm, ts), } - return sm.VMConstructor()(ctx, vmopt) + return sm.VMConstructor()(blockstore.WithHotView(ctx), vmopt) } runCron := func(vmCron *vm.VM, epoch abi.ChainEpoch) error {