Skip to content
This repository was archived by the owner on May 3, 2024. It is now read-only.

New invalid tx#157

Open
CeciliaZ030 wants to merge 34 commits into
feat/for-a6-releasefrom
new-invalid-tx
Open

New invalid tx#157
CeciliaZ030 wants to merge 34 commits into
feat/for-a6-releasefrom
new-invalid-tx

Conversation

@CeciliaZ030

Copy link
Copy Markdown

Description

Handel invalid Tx using error state. Replacing #115

Issue Link

#25

@CeciliaZ030 CeciliaZ030 marked this pull request as ready for review October 6, 2023 10:17
github-merge-queue Bot pushed a commit to privacy-ethereum/zkevm-circuits that referenced this pull request Dec 6, 2023
### Description

Resolves
#1611
Upstreamed from taikoxyz#157 with
some additional changes.

Adds an additional execution state for transactions that are invalid and
need to be skipped. This execution state needs to be enabled instead of
the normal BeginTx/EndTx for valid transactions.

Support skipping the following invalid transactions for now:
- nonce too low
- nonce too high
- intrinsic gas too low
- insufficient funds for gas * price + value

More cases will be added in future PRs.

### Issue Link


#1611

### Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update

### Contents

- [_item_]

### Rationale

[_design decisions and extended information_]

### How Has This Been Tested?

- Added required unit tests
- make test-all passes

---------

Co-authored-by: Cecilia Zhang <zhangyixin319@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants