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

Trace filter #76

Merged
merged 4 commits into from
Oct 13, 2022
Merged

Trace filter #76

merged 4 commits into from
Oct 13, 2022

Conversation

brianluong
Copy link
Member

@brianluong brianluong commented Oct 13, 2022

Description

state method

Type of change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • 😎 New feature (non-breaking change which adds functionality)
  • ⁉️ Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • ⚒️ Refactor (no functional changes)
  • 📖 Documentation (updating or adding docs)

How Has This Been Tested?

none

@@ -10,7 +10,7 @@ func (p *RequestMetadataParser) Parse(requestBody jsonrpc.RequestBody) RequestMe
result := RequestMetadata{}

switch requestBody.Method {
case "eth_getBalance", "eth_getStorageAt", "eth_getTransactionCount", "eth_getCode", "eth_call", "eth_estimateGas":
case "eth_getBalance", "eth_getStorageAt", "eth_getTransactionCount", "eth_getCode", "eth_call", "eth_estimateGas", "trace_filter":
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we update the documentation to match the behavior change? Everything says state right now. We can change it to StateAndTrace and clarify w/ comments.

Mind also adding these trace methods? https://openethereum.github.io/JSONRPC-trace-module#:~:text=G%3A%20%5B1%2C%200%5D%7D%20%5D-,JSON%2DRPC%20methods,-Ad%2Dhoc%20Tracing

Copy link
Member

@dianwen dianwen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! To be extra safe, let's make some trace requests after this is deployed and ensure they all succeed.

@brianluong brianluong merged commit 8f951b8 into main Oct 13, 2022
@brianluong brianluong deleted the trace_filter branch October 13, 2022 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants