-
Notifications
You must be signed in to change notification settings - Fork 50
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
Non-osaka EOF changes #179
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,20 @@ func CustomMarshal(log *opLog) []byte { | |
b = append(b, []byte(`,"pc":`)...) | ||
b = strconv.AppendUint(b, uint64(log.Pc), 10) | ||
|
||
// Depends on Geth EOF support | ||
// Even then, not essential to diffing | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It doesn't really depend on geth support. You can do like I do with the globals, e.g
So you add if !IgnoreEOF {
if log.Section != 0 {
b = append(b, []byte(`,"section":`)...)
b = strconv.AppendUint(b, uint64(log.Section), 10)
}
if log.FunctionDepth ... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will do. Some of the commented out code depends on types from go-ethereum code. Those will remain commented out. |
||
//// code section, if not zero | ||
//if log.Section != 0 { | ||
// b = append(b, []byte(`,"section":`)...) | ||
// b = strconv.AppendUint(b, uint64(log.Section), 10) | ||
//} | ||
// | ||
//// function call depth, if not zero | ||
//if log.FunctionDepth != 0 { | ||
// b = append(b, []byte(`,"functionDepth":`)...) | ||
// b = strconv.AppendUint(b, uint64(log.FunctionDepth), 10) | ||
//} | ||
|
||
// Gas remaining | ||
b = append(b, []byte(`,"gas":`)...) | ||
b = strconv.AppendUint(b, uint64(log.Gas), 10) | ||
|
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.
Do you have any example statetest which makes besu emit this? Or is that an opcoming change?
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.
hyperledger/besu#8006 - will land in main after new year