Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add native call tracer #6945

Merged
merged 18 commits into from
May 2, 2024
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion src/Nethermind/Nethermind.Evm.Test/EvmPooledMemoryTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,19 @@ public class MyTracer : ITxTracer, IDisposable
public bool IsTracingBlockHash { get; } = false;
public bool IsTracingAccess { get; } = false;
public bool IsTracingFees => false;
public bool IsTracing => IsTracingReceipt || IsTracingActions || IsTracingOpLevelStorage || IsTracingMemory || IsTracingInstructions || IsTracingRefunds || IsTracingCode || IsTracingStack || IsTracingBlockHash || IsTracingAccess || IsTracingFees;
public bool IsTracingLogs => false;
public bool IsTracing => IsTracingReceipt
|| IsTracingActions
|| IsTracingOpLevelStorage
|| IsTracingMemory
|| IsTracingInstructions
|| IsTracingRefunds
|| IsTracingCode
|| IsTracingStack
|| IsTracingBlockHash
|| IsTracingAccess
|| IsTracingFees
|| IsTracingLogs;

public string lastmemline;

Expand All @@ -241,6 +253,10 @@ public void ReportOperationRemainingGas(long gas)
{
}

public void ReportLog(LogEntry log)
{
}

public void SetOperationStack(TraceStack stack)
{
}
Expand Down Expand Up @@ -320,6 +336,11 @@ public void ReportActionError(EvmExceptionType exceptionType)
throw new NotSupportedException();
}

public void ReportActionRevert(long gas, ReadOnlyMemory<byte> output)
{
throw new NotSupportedException();
}

public void ReportActionEnd(long gas, Address deploymentAddress, ReadOnlyMemory<byte> deployedCode)
{
throw new NotSupportedException();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
using Nethermind.Int256;
using Nethermind.Logging;
using Nethermind.Specs;
using Nethermind.Specs.Forks;
using Nethermind.State;
using Nethermind.Trie.Pruning;
using NSubstitute;
Expand Down
Loading