0xMiden / 0xMiden/protocol

Add a protocol-aware note fee policy

未关闭
#3,506 1 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
fees standards
主要语言
Rust
星标
132
派生
167
平均合并
1 天 23 小时
30 天内合并 PR
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 摘要。