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

Support non EIP-155 tx #777

Merged
merged 4 commits into from Aug 21, 2022
Merged

Conversation

jjyr
Copy link
Collaborator

@jjyr jjyr commented Aug 4, 2022

Related issue: #775

To support EIP-155, Godwoken accepts chain_id = 0 l2 txs now, we assume the tx is non-EIP-155 tx when chain_id=0.

Since we reuse the chain_id field, it implies if we deploy another Godwoken instance with chain_id=0, then we can't send a valid EIP-155 transaction on that chain since Godwoken assumes chain_id=0 txs are non-EIP-155.

This PR also removes the unused Secp256K1 and Secp256K1Tron implementation.

Secp256k1Tron and Secp256k1 signing are never supported in the testnet and the mainnet. So we remove the unused implementation.

Date:      Wed Aug 3 22:32:18 2022 +0800

On branch support-non-eip155-tx
Changes to be committed:
      modified:   crates/block-producer/src/runner.rs
      modified:   crates/generator/src/account_lock_manage/secp256k1.rs
      modified:   crates/replay-chain/src/setup.rs
      modified:   crates/tests/src/tests/chain.rs
      modified:   crates/types/src/core.rs
@gw-bot

This comment was marked as off-topic.

@jjyr
Copy link
Collaborator Author

jjyr commented Aug 4, 2022

@classicalliu Can you modify godwoken-indexer and web3 server to support non-EIP-155 txs

@Flouse Flouse linked an issue Aug 4, 2022 that may be closed by this pull request
@Flouse Flouse added the enhancement New feature or request label Aug 4, 2022
zeroqn
zeroqn previously approved these changes Aug 9, 2022
@gw-bot
Copy link

gw-bot bot commented Aug 10, 2022

Running integration test

Workflow Run Id: 2832571902

Components:

Manually running integration test

Post a comment contains

/itest
[prebuilds: tag]
[godwoken: branch/ref]
[scripts: branch/ref]
[polyjuice: branch/ref]
[web3: branch/ref]
[kicker: branch/ref]
[tests: branch/ref]

Note: [] means optional, for example

/itest
prebuilds: dev-202203280240
godwoken: develop
scripts: 81676d9d53ffdf5bbaa60483928d07da16eb4a88
polyjuice: e37553b9

Run Result

success

@jjyr jjyr requested a review from magicalne August 16, 2022 12:36
@jjyr jjyr merged commit 88b9940 into godwokenrises:develop Aug 21, 2022
@jjyr jjyr deleted the support-non-eip155-tx branch August 21, 2022 05:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove mandatory eip-155 txs for multi-chain factories deployment
6 participants