feat: make actor debugging a build param

And enable for wallaby.

fix build.
This commit is contained in:
Steven Allen 2022-09-02 16:14:22 -07:00 committed by vyzo
parent 2500d98def
commit ef90ba7cef
8 changed files with 10 additions and 0 deletions

View File

@ -21,6 +21,7 @@ const GenesisFile = ""
var NetworkBundle = "devnet" var NetworkBundle = "devnet"
var BundleOverrides map[actorstypes.Version]string var BundleOverrides map[actorstypes.Version]string
var ActorDebugging = true
const GenesisNetworkVersion = network.Version18 const GenesisNetworkVersion = network.Version18

View File

@ -23,6 +23,7 @@ const GenesisNetworkVersion = network.Version16
var NetworkBundle = "butterflynet" var NetworkBundle = "butterflynet"
var BundleOverrides map[actorstypes.Version]string var BundleOverrides map[actorstypes.Version]string
var ActorDebugging = false
const BootstrappersFile = "butterflynet.pi" const BootstrappersFile = "butterflynet.pi"
const GenesisFile = "butterflynet.car" const GenesisFile = "butterflynet.car"

View File

@ -26,6 +26,7 @@ const GenesisNetworkVersion = network.Version0
var NetworkBundle = "calibrationnet" var NetworkBundle = "calibrationnet"
var BundleOverrides map[actorstypes.Version]string var BundleOverrides map[actorstypes.Version]string
var ActorDebugging = false
const BootstrappersFile = "calibnet.pi" const BootstrappersFile = "calibnet.pi"
const GenesisFile = "calibnet.car" const GenesisFile = "calibnet.car"

View File

@ -20,6 +20,7 @@ import (
var NetworkBundle = "caterpillarnet" var NetworkBundle = "caterpillarnet"
var BundleOverrides map[actorstypes.Version]string var BundleOverrides map[actorstypes.Version]string
var ActorDebugging = false
const BootstrappersFile = "interopnet.pi" const BootstrappersFile = "interopnet.pi"
const GenesisFile = "interopnet.car" const GenesisFile = "interopnet.car"

View File

@ -25,6 +25,9 @@ var NetworkBundle = "mainnet"
// NOTE: DO NOT change this unless you REALLY know what you're doing. This is consensus critical. // NOTE: DO NOT change this unless you REALLY know what you're doing. This is consensus critical.
var BundleOverrides map[actorstypes.Version]string var BundleOverrides map[actorstypes.Version]string
// NOTE: DO NOT change this unless you REALLY know what you're doing. This is consensus critical.
const ActorDebugging = false
const GenesisNetworkVersion = network.Version0 const GenesisNetworkVersion = network.Version0
const BootstrappersFile = "mainnet.pi" const BootstrappersFile = "mainnet.pi"

View File

@ -116,6 +116,7 @@ var (
GenesisNetworkVersion = network.Version0 GenesisNetworkVersion = network.Version0
NetworkBundle = "devnet" NetworkBundle = "devnet"
BundleOverrides map[actorstypes.Version]string BundleOverrides map[actorstypes.Version]string
ActorDebugging = true
NewestNetworkVersion = network.Version16 NewestNetworkVersion = network.Version16
ActorUpgradeNetworkVersion = network.Version16 ActorUpgradeNetworkVersion = network.Version16

View File

@ -17,6 +17,7 @@ import (
var NetworkBundle = "wallaby" var NetworkBundle = "wallaby"
var BundleOverrides map[actors.Version]string var BundleOverrides map[actors.Version]string
var ActorDebugging = true
const BootstrappersFile = "wallabynet.pi" const BootstrappersFile = "wallabynet.pi"
const GenesisFile = "wallabynet.car" const GenesisFile = "wallabynet.car"

View File

@ -303,6 +303,7 @@ func defaultFVMOpts(ctx context.Context, opts *VMOpts) (*ffi.FVMOpts, error) {
NetworkVersion: opts.NetworkVersion, NetworkVersion: opts.NetworkVersion,
StateBase: opts.StateBase, StateBase: opts.StateBase,
Tracing: opts.Tracing || EnableDetailedTracing, Tracing: opts.Tracing || EnableDetailedTracing,
Debug: build.ActorDebugging,
}, nil }, nil
} }