diff --git a/nimbus/vm2/state.nim b/nimbus/vm2/state.nim index 8f0b9e62f..cfd3b1f10 100644 --- a/nimbus/vm2/state.nim +++ b/nimbus/vm2/state.nim @@ -389,6 +389,9 @@ proc enableTracing*(vmState: BaseVMState) = proc disableTracing*(vmState: BaseVMState) = vmState.tracer.flags.excl EnableTracing +func tracingEnabled*(vmState: BaseVMState): bool = + EnableTracing in vmState.tracer.flags + iterator tracedAccounts*(vmState: BaseVMState): EthAddress = for acc in vmState.tracer.accounts: yield acc diff --git a/nimbus/vm_state.nim b/nimbus/vm_state.nim index 2848019c5..cd48070ed 100644 --- a/nimbus/vm_state.nim +++ b/nimbus/vm_state.nim @@ -22,6 +22,7 @@ export vms.difficulty, vms.disableTracing, vms.enableTracing, + vms.tracingEnabled, vms.baseFee, vms.generateWitness, vms.`generateWitness=`,