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 BundleOverrides map[actorstypes.Version]string
var ActorDebugging = true
const GenesisNetworkVersion = network.Version18

View File

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

View File

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

View File

@ -20,6 +20,7 @@ import (
var NetworkBundle = "caterpillarnet"
var BundleOverrides map[actorstypes.Version]string
var ActorDebugging = false
const BootstrappersFile = "interopnet.pi"
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.
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 BootstrappersFile = "mainnet.pi"

View File

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

View File

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

View File

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