-
Notifications
You must be signed in to change notification settings - Fork 104
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
Filter transaction #377
base: master
Are you sure you want to change the base?
Filter transaction #377
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also update the PR comment to explain what's going on and why? The link to the Linear ticket is not sufficient for people who want to contribute to the project but don't have access to Linear.
core/state/statedb.go
Outdated
type arbFiltered int | ||
|
||
const ( | ||
txFiltered arbFiltered = 1 + iota |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there should be another value in the enum for the zero value.
Maybe unfiltered
or notFiltered
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added it
type arbFiltered int | ||
|
||
const ( | ||
unFiltered arbFiltered = iota |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry to be so picky, but since unfiltered is a single word in English. I'd either use unfiltered
or notFiltered
here.
This PR enables filtering of malicious transactions and blocks via a
stateDB
objectCorresponding Nitro PR- OffchainLabs/nitro#2807
Part of NIT-2848