0xMiden / 0xMiden/protocol

Add a protocol-aware note fee policy

オープン
#3,506 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る
fees standards
主要言語
Rust
スター
132
フォーク
167
平均マージ
1日 23時間
マージ済み PR(30日)
110

説明

`BasicConstantFeePolicy` should remain simple and charge a fixed fee per note script. Instead of adding asset-based pricing to it, introduce a separate policy that estimates the protocol cost of a note.

The policy should:

- store `lookup_key |-> worst_case_cycles` in its fee schedule;
- account for note properties such as the number of assets and storage requirements;
- apply the reference block’s fee parameters to estimate the protocol fee; and
- scale the result by a configured constant.

This replaces the asset-count extension proposed in #3393. The experimental implementation in #3429 can be closed.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。