fix conformance driver

This commit is contained in:
vyzo 2022-04-08 14:11:04 +03:00
parent 12554baed4
commit c35e7691bd

View File

@ -8,6 +8,7 @@ import (
"github.com/filecoin-project/go-state-types/network"
"github.com/filecoin-project/lotus/blockstore"
"github.com/filecoin-project/lotus/chain/actors"
"github.com/filecoin-project/lotus/chain/consensus/filcns"
"github.com/filecoin-project/lotus/chain/state"
"github.com/filecoin-project/lotus/chain/stmgr"
@ -235,7 +236,8 @@ func (d *Driver) ExecuteMessage(bs blockstore.Blockstore, params ExecuteMessageP
// register the chaos actor if required by the vector.
if chaosOn, ok := d.selector["chaos_actor"]; ok && chaosOn == "true" {
invoker.Register(nil, chaos.Actor{})
av, _ := actors.VersionForNetwork(params.NetworkVersion)
invoker.Register(av, nil, chaos.Actor{})
}
lvm.SetInvoker(invoker)