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

Integrate CaptureArbitrumStorageGet/Set into the prestate tracer #352

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

ganeshvanahalli
Copy link
Contributor

@ganeshvanahalli ganeshvanahalli commented Aug 22, 2024

Pulled by OffchainLabs/nitro#2602

Part of NIT-2733

@cla-bot cla-bot bot added the s CLA signed label Aug 22, 2024
eth/tracers/native/prestate.go Outdated Show resolved Hide resolved
eth/tracers/native/prestate.go Outdated Show resolved Hide resolved
diegoximenes
diegoximenes previously approved these changes Sep 5, 2024
Base automatically changed from merge-1.14.0 to master November 6, 2024 01:07
@tsahee tsahee dismissed diegoximenes’s stale review November 6, 2024 01:07

The base branch was changed.


ArbitrumStorage map[common.Hash]common.Hash `json:"arbitrumStorage,omitempty"`

empty bool
Copy link
Contributor

Choose a reason for hiding this comment

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

Original geth has this empty property.
To minimize conflicts when updating this fork with changes introduced in the original geth, how about letting this empty property right after the Storage property?

Comment on lines +217 to +220
postAccount := &account{
Storage: make(map[common.Hash]common.Hash),
ArbitrumStorage: make(map[common.Hash]common.Hash),
}
Copy link
Contributor

Choose a reason for hiding this comment

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

To later minimize git conflicts when updating this fork with changes from the original geth:

Suggested change
postAccount := &account{
Storage: make(map[common.Hash]common.Hash),
ArbitrumStorage: make(map[common.Hash]common.Hash),
}
postAccount := &account{Storage: make(map[common.Hash]common.Hash)}
postAccount.ArbitrumStorage = make(map[common.Hash]common.Hash)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s CLA signed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants