forked from ethereum/go-ethereum
-
Notifications
You must be signed in to change notification settings - Fork 54
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
Flashbots/private txs #25
Draft
shampoobera
wants to merge
6
commits into
stateful-v1.11.4
Choose a base branch
from
flashbots/private-txs
base: stateful-v1.11.4
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.
Draft
Conversation
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
…is-geth into stateful-v1.11.4
looks good so far, try to remove the Prepare for tx commit |
itsdevbear
reviewed
May 26, 2023
@@ -118,7 +118,7 @@ func Execute(code, input []byte, cfg *Config) ([]byte, state.StateDBI, error) { | |||
// Execute the preparatory steps for state transition which includes: | |||
// - prepare accessList(post-berlin) | |||
// - reset transient storage(eip 1153) | |||
cfg.State.Prepare(rules, cfg.Origin, cfg.Coinbase, &address, vmenv.PrecompileManager.GetActive(&rules), nil) | |||
cfg.State.PrepareForTx(rules, cfg.Origin, cfg.Coinbase, &address, vmenv.PrecompileManager.GetActive(&rules), nil) |
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.
keep this as Prepare imo.
shampoobera
pushed a commit
that referenced
this pull request
May 30, 2023
# This is the 1st commit message: params: release Geth v1.11.2 # This is the commit message #2: stateful # This is the commit message #3: use PrecompileExecutor # This is the commit message #4: use host terminology # This is the commit message #5: return precompiledContract and bool # This is the commit message #6: use ctx in Run instead of statedb # This is the commit message #7: change to ph # This is the commit message #8: bing bong # This is the commit message #9: rename to runner # This is the commit message #10: rename constructor # This is the commit message #11: new precompile function types # This is the commit message #12: precompile controller # This is the commit message #13: make PrecompileController public # This is the commit message #14: ctx setter # This is the commit message #15: add statedb in contract.Run # This is the commit message #16: use Prepare on controller # This is the commit message #17: prepare for state transition # This is the commit message #18: contract has registry key # This is the commit message #19: has and get # This is the commit message #20: controller > manager # This is the commit message #21: with statedb # This is the commit message #22: with ctx # This is the commit message #23: simple precompile manager # This is the commit message #24: allow setting block context to evm # This is the commit message #25: remove unneded evm funcs # This is the commit message #26: simplify precompile manager # This is the commit message #27: updated go.sum # This is the commit message #28: removing extra bits # This is the commit message #29: typo fixes # This is the commit message #30: ethapi # This is the commit message #31: cleanup precomp manager # This is the commit message #32: add get chain id # This is the commit message #33: make access list public # This is the commit message #34: make access list struct public # This is the commit message #35: fix typos # This is the commit message #36: ethpub # This is the commit message #37: use the StateDB interface in the API # This is the commit message ethereum#38: make compatible # This is the commit message ethereum#39: fixed merge conflicts # This is the commit message ethereum#40: remove unecessary vm imports # This is the commit message ethereum#41: add signature to signer interface # This is the commit message ethereum#42: params: begin v.1.11.3 release cycle # This is the commit message ethereum#43: log: improve documentation (ethereum#26753) Add usage examples # This is the commit message ethereum#44: core/rawdb, node: use standalone flock dependency (ethereum#26633) # This is the commit message ethereum#45: eth: use the last announced finalized block as the sync ancient limit (ethereum#26685) # This is the commit message ethereum#46: ci: disable coverage reporting in appveyor and travis # This is the commit message ethereum#47: cmd/devp2p: faster crawling + less verbose dns updates (ethereum#26697) This improves the speed of DHT crawling by using concurrent requests. It also removes logging of individual DNS updates. # This is the commit message ethereum#48: eth/tracers: add native flatCallTracer (aka parity style tracer) (ethereum#26377) Adds support for a native call tracer with the Parity format, which outputs call frames in a flat array. This tracer accepts the following options: - `convertParityErrors: true` will convert error messages to match those of Parity - `includePrecompiles: true` will report all calls to precompiles. The default matches Parity's behavior where CALL and STATICCALLs to precompiles are excluded Incompatibilities with Parity include: - Parity removes the result object in case of failure. This behavior is maintained with the exception of reverts. Revert output usually contains useful information, i.e. Solidity revert reason. - The `gasUsed` field accounts for intrinsic gas (e.g. 21000 for simple transfers) and refunds unlike Parity - Block rewards are not reported Co-authored-by: Sina Mahmoodi <itz.s1na@gmail.com> # This is the commit message ethereum#49: core: improve withdrawal index assignment in GenerateChain (ethereum#26756) This fixes an issue where the withdrawal index was not calculated correctly for multiple withdrawals in a single block. Co-authored-by: Gary Rong <garyrong0905@gmail.com> Co-authored-by: Felix Lange <fjl@twurst.com> # This is the commit message ethereum#50: ethdb/pebble: fix range compaction (ethereum#26771) * ethdb/pebble: fix range compaction * ethdb/pebble: add comment # This is the commit message ethereum#51: ethdb/pebble: fix max memorytable size (ethereum#26776) # This is the commit message ethereum#52: ethclient: include withdrawals in ethclient block responses (ethereum#26778) * include withdrawals in ethclient responses * omit empty withdrawals array in json serialization
tlikai
reviewed
May 11, 2024
@@ -71,7 +71,7 @@ type StateDBI interface { | |||
// AddSlotToAccessList adds the given (address,slot) to the access list. This operation is safe to perform | |||
// even if the feature/fork is not active yet | |||
AddSlotToAccessList(addr common.Address, slot common.Hash) | |||
Prepare(rules params.Rules, sender, coinbase common.Address, dest *common.Address, precompiles []common.Address, txAccesses types.AccessList) | |||
PrepareForTx(rules params.Rules, sender, coinbase common.Address, dest *common.Address, precompiles []common.Address, txAccesses types.AccessList) |
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.
Prepare is good
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.