forked from erigontech/erigon
-
Notifications
You must be signed in to change notification settings - Fork 12
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
feat: firehose live tracer #53
Draft
dhyaniarun1993
wants to merge
33
commits into
feature/erigon-live-tracer-port
Choose a base branch
from
feat/firehose-live-tracer
base: feature/erigon-live-tracer-port
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+6,002
−18
Draft
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
ae0e05e
firehose tracer added
dhyaniarun1993 efa194d
fix bugs
dhyaniarun1993 cecd3b4
Merge branch 'feature/erigon-live-tracer-port' into feat/firehose-liv…
dhyaniarun1993 bdf5917
Merge branch 'feature/erigon-live-tracer-port' into feat/firehose-liv…
dhyaniarun1993 889f8be
feature/erigon-live-tracer-port merged
dhyaniarun1993 3029efe
Merge branch 'feature/erigon-live-tracer-port' into feat/firehose-liv…
dhyaniarun1993 73931ad
refactor
dhyaniarun1993 6766b46
Merge branch 'feature/erigon-live-tracer-port' into feat/firehose-liv…
dhyaniarun1993 dfcc4d0
Merge branch 'feature/erigon-live-tracer-port' into feat/firehose-liv…
dhyaniarun1993 983a37e
bugfixes
dhyaniarun1993 c55a05e
code refactor
dhyaniarun1993 c06028c
Merge branch 'feature/erigon-live-tracer-port' into feat/firehose-liv…
dhyaniarun1993 ad989aa
account creation backward compatibility
dhyaniarun1993 be910c9
executed code corner case
dhyaniarun1993 fa85b27
topic backward compatibility fix
dhyaniarun1993 1251baf
revert: topic backward compatibility fix
dhyaniarun1993 4bb66cd
feature/erigon-live-tracer-port merged
dhyaniarun1993 ff0e93a
Merge branch 'feature/erigon-live-tracer-port' into feat/firehose-liv…
dhyaniarun1993 88715da
remove delegate value hack
dhyaniarun1993 d37c193
fix comment
dhyaniarun1993 5a3c874
erigon tracer merged and conflict resolved
dhyaniarun1993 2741e7e
Updated when FIRE INIT is actually printed
dhyaniarun1993 36d5bf0
feature/erigon-live-tracer-port merged
dhyaniarun1993 9705550
merge code fixes
dhyaniarun1993 6bbe0a3
Reduce amount of changes to Geth Live Tracer to keep Firehose backwar…
dhyaniarun1993 9133014
added firehose pb
dhyaniarun1993 d110d39
revert back to streaming fast pb
dhyaniarun1993 fb7018e
revert back to streaming fast pb
dhyaniarun1993 b46f0fd
fire init bugfixes
dhyaniarun1993 15bf7e1
firehose printer bugfix
dhyaniarun1993 ac60358
bugfix
dhyaniarun1993 aa68ce4
ignore BalanceDecreaseSelfdestructBurn
dhyaniarun1993 22ee5a7
Merge branch 'feature/erigon-live-tracer-port' into feat/firehose-liv…
dhyaniarun1993 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
How this method is not working but propagating the precompile down to StateDB works. I think it will be important to understand what is the difference.
That being said, the native tracer Git commit s1na/go-ethereum@ee58cc7 implements it differently, I think porting those will be needed
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.
These changes are already ported in statedb: precompile check before onNewAccount commit. I removed precompile check from here since it being done at statedb now.
In the old firehose implementation, we take the precompile flag on the AddBalance here. If you check the references of
AddBalance
, In majority of the cases we are sending hardcodedfalse
instead of checking against the precompile config. Because of this even precompiled contracts are getting logged in theNewAccount
in some cases.Whereas in new implementation, each and every account was checked against the precompile config.
In this commit, I added a new flag
checkPrecompile
, that denotes if new account should be checked against precompiled address or not. I am sendingcheckPrecompile
values according to the firehose old implementation to make the new tracer backward compatible.@maoueh Let me know what you think