add enabledTracing accessor to BaseVMState

This commit is contained in:
jangko 2022-10-24 17:36:49 +07:00
parent f732cba0c3
commit 954081578f
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -22,6 +22,7 @@ export
vms.difficulty,
vms.disableTracing,
vms.enableTracing,
vms.tracingEnabled,
vms.baseFee,
vms.generateWitness,
vms.`generateWitness=`,