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

feature(op-geth): add opbnb gasless solution #130

Merged
merged 35 commits into from
Aug 5, 2024

Conversation

redhdx
Copy link
Contributor

@redhdx redhdx commented Jul 18, 2024

Description

Add opbnb gasless solution. This is a breaking change for opbnb. In order to enable opbnb to support gasless transactions, this PR introduces the new hard fork wright. After enabling the wright hard fork, opbnb's basefee will be 0. For transactions with a gasprice of 0, opbnb will not charge L1 cost. With this change, opbnb has added bundle transaction and bundle pool. Please refer bnb-chain/BEPs#322 to the specific implementation details.

Rationale

Add opbnb gasless solution which can enable opbnb to support gasless transaction.

Example

Changes

Notable changes:

  • add new hard fork wright.
  • add new apis about bundle.
    • eth_bundlePrice: returns the price of a bundle
    • eth_simulateGaslessBundle: simulates a gasless bundle
    • eth_sendBundle: sends a bundle
  • add bundle pool.
  • building block add mev logic.
  • add new config.
    • --mev.enable: enable mev feature, can enable bundle pool and receive bundle transactions
    • --mev.bundle.receiver.url: enable bundle deliver function, can deliver bundle to the specific url.
    • --mev.bundle.gasprice.floor: set bundle gas price floor, default value is 1.
    • --bundlepool.globalslots: set bundle pool size, default value is 4096.

miner/worker_builder.go Outdated Show resolved Hide resolved
miner/worker_builder.go Outdated Show resolved Hide resolved
cmd/utils/flags.go Outdated Show resolved Hide resolved
cmd/utils/flags.go Outdated Show resolved Hide resolved
welkin22
welkin22 previously approved these changes Aug 5, 2024
Copy link
Contributor

@welkin22 welkin22 left a comment

Choose a reason for hiding this comment

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

LGTM

@owen-reorg
Copy link
Collaborator

plz add testnet fork time: 8.15 2pm utc+8

@redhdx
Copy link
Contributor Author

redhdx commented Aug 5, 2024

plz add testnet fork time: 8.15 2pm utc+8

Added. Plz confirm it.

@owen-reorg owen-reorg merged commit 7fd1790 into bnb-chain:develop Aug 5, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants