refactor: remove puppet actor from conformance tests

The puppet actor has been subsumed into the chaos actor and test-vector tests no longer use it.
This commit is contained in:
Alan Shaw 2020-09-02 15:57:19 +01:00 committed by Raúl Kripalani
parent 8e7a8d8c97
commit ada5e6ae68

View File

@ -13,7 +13,6 @@ import (
"github.com/filecoin-project/lotus/lib/blockstore" "github.com/filecoin-project/lotus/lib/blockstore"
"github.com/filecoin-project/specs-actors/actors/abi" "github.com/filecoin-project/specs-actors/actors/abi"
"github.com/filecoin-project/specs-actors/actors/puppet"
"github.com/filecoin-project/test-vectors/chaos" "github.com/filecoin-project/test-vectors/chaos"
"github.com/filecoin-project/test-vectors/schema" "github.com/filecoin-project/test-vectors/schema"
@ -137,10 +136,7 @@ func (d *Driver) ExecuteMessage(bs blockstore.Blockstore, preroot cid.Cid, epoch
invoker := vm.NewInvoker() invoker := vm.NewInvoker()
// add support for the puppet and chaos actors. // register the chaos actor if required by the vector.
if puppetOn, ok := d.selector["puppet_actor"]; ok && puppetOn == "true" {
invoker.Register(puppet.PuppetActorCodeID, puppet.Actor{}, puppet.State{})
}
if chaosOn, ok := d.selector["chaos_actor"]; ok && chaosOn == "true" { if chaosOn, ok := d.selector["chaos_actor"]; ok && chaosOn == "true" {
invoker.Register(chaos.ChaosActorCodeCID, chaos.Actor{}, chaos.State{}) invoker.Register(chaos.ChaosActorCodeCID, chaos.Actor{}, chaos.State{})
} }