Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Use snapshots for blocklist revert #5

Merged
merged 1 commit into from
Nov 22, 2022

Conversation

dvush
Copy link
Contributor

@dvush dvush commented Nov 22, 2022

Removes state copying when applying individual tx that can potentially be reverted.

// Apply the transaction to the current state (included in the env).
result, err := ApplyMessage(evm, msg, gp)
if err != nil {
return nil, err
}
if preFinalizeHook != nil {
err = preFinalizeHook()
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should preFinalizeHook accept result?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree but I decided to not add args before we actually need them.
For 1tx bundle revert we would need results, state and maybe something else too.

@Ruteri Ruteri merged commit 4d1b163 into flashbots:main Nov 22, 2022
avalonche pushed a commit that referenced this pull request Feb 7, 2023
avalonche pushed a commit that referenced this pull request Feb 7, 2023
* Implement block validation API

* Validate proposer payment assuming its the last transaction in the block (#4)

* Validate that the coinbase and feeRecipient are not blacklisted (#5)

* Validate that the proposer payment has no calldata and its gas usage (#6)

* Validate gas limit is set correctly wrt registered (#8)

* Pass validation-specific config (#9)
avalonche pushed a commit that referenced this pull request Feb 7, 2023
avalonche pushed a commit that referenced this pull request Mar 9, 2023
avalonche pushed a commit that referenced this pull request Mar 9, 2023
* Implement block validation API

* Validate proposer payment assuming its the last transaction in the block (#4)

* Validate that the coinbase and feeRecipient are not blacklisted (#5)

* Validate that the proposer payment has no calldata and its gas usage (#6)

* Validate gas limit is set correctly wrt registered (#8)

* Pass validation-specific config (#9)
avalonche pushed a commit that referenced this pull request Mar 9, 2023
avalonche pushed a commit that referenced this pull request Mar 15, 2023
avalonche pushed a commit that referenced this pull request Mar 15, 2023
* Implement block validation API

* Validate proposer payment assuming its the last transaction in the block (#4)

* Validate that the coinbase and feeRecipient are not blacklisted (#5)

* Validate that the proposer payment has no calldata and its gas usage (#6)

* Validate gas limit is set correctly wrt registered (#8)

* Pass validation-specific config (#9)
avalonche pushed a commit that referenced this pull request Mar 15, 2023
avalonche pushed a commit that referenced this pull request Mar 17, 2023
avalonche pushed a commit that referenced this pull request Mar 17, 2023
* Implement block validation API

* Validate proposer payment assuming its the last transaction in the block (#4)

* Validate that the coinbase and feeRecipient are not blacklisted (#5)

* Validate that the proposer payment has no calldata and its gas usage (#6)

* Validate gas limit is set correctly wrt registered (#8)

* Pass validation-specific config (#9)
avalonche pushed a commit that referenced this pull request Mar 17, 2023
avalonche pushed a commit that referenced this pull request Mar 22, 2023
avalonche pushed a commit that referenced this pull request Mar 22, 2023
* Implement block validation API

* Validate proposer payment assuming its the last transaction in the block (#4)

* Validate that the coinbase and feeRecipient are not blacklisted (#5)

* Validate that the proposer payment has no calldata and its gas usage (#6)

* Validate gas limit is set correctly wrt registered (#8)

* Pass validation-specific config (#9)
avalonche pushed a commit that referenced this pull request Mar 22, 2023
avalonche pushed a commit that referenced this pull request Jul 6, 2023
avalonche pushed a commit that referenced this pull request Jul 6, 2023
* Implement block validation API

* Validate proposer payment assuming its the last transaction in the block (#4)

* Validate that the coinbase and feeRecipient are not blacklisted (#5)

* Validate that the proposer payment has no calldata and its gas usage (#6)

* Validate gas limit is set correctly wrt registered (#8)

* Pass validation-specific config (#9)
avalonche pushed a commit that referenced this pull request Jul 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants