Skip to content

doc: add payment lane bep - #703

Open
joey0612 wants to merge 1 commit into
masterfrom
payment_lane
Open

doc: add payment lane bep#703
joey0612 wants to merge 1 commit into
masterfrom
payment_lane

Conversation

@joey0612

Copy link
Copy Markdown
Contributor

No description provided.

@hashdit-bot

hashdit-bot Bot commented Jul 17, 2026

Copy link
Copy Markdown

Pull Request Review

This PR adds a new proposal document, BEP-703, describing a “Payment Lane” mechanism that reserves a dynamic portion of block gas for payment-class transactions on BNB Smart Chain. The spec defines classification rules, quota accounting, dynamic adjustment logic, governance-controlled parameters, and security considerations for the mechanism. It also updates README.md to include BEP-703 in the BEP index table.

Sensitive Content

No sensitive content detected.

Security Issues

No serious security issues detected.


Generated by Hashdit Bot. This tool can absolutely NOT replace manual audits.

Comment thread BEPs/BEP-703.md
- `signal < SHRINK_TRIGGER_RATIO` — the chain has slack: the quota ratio decreases by `SHRINK_STEP`, down to the effective minimum.
- Otherwise — the hysteresis band: the quota is unchanged, absorbing fluctuation and preventing oscillation.

Note that `generalGasUsed` includes payment gas consumed beyond the quota (that gas competed as general traffic), so the signal responds to both pressure sources: general demand squeezing available space, and payment demand overflowing its own floor.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

A bit different from the above: generalGasUsed = total gas consumed by general transactions in the block.

Comment thread BEPs/BEP-703.md

### 3.3 Dynamic Quota Adjustment

`paymentLaneSize` for block `n` is a deterministic function of chain history, computed by every node from block `n−1`; no new header field is required. The adjustment reads a single signal:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Todo: think more. Restart / snap-sync maybe need to walk all the history to rebuild?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

reuse header field?? header extra??

Comment thread BEPs/BEP-703.md
signal(n−1) = generalGasUsed(n−1) / GasLimit(n−1)
```

- `signal >= EXPAND_TRIGGER_RATIO` — the chain is congested: the quota ratio increases by `EXPAND_STEP`, up to the effective maximum.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

mark: quota ratio -> quota size, because the gas limit may be different, it is better to use the absolute value here.

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.

4 participants