CodeChain-io / CodeChain-io/foundry

Introduce a minimum fee per byte

未关闭
#55 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Rust
星标
36
派生
11
PR 合并指标
30 天内没有已合并 PR

描述

CodeChain invalidates transactions whose fee is less than the minimum fee. The fee is charged for the network usage. We should set the minimum fee according to the transaction's CPU cost and Disk cost.

CodeChain requires a fixed fee for a Transfer transaction. A transfer transaction has multiple inputs and outputs. The transaction issuer should pay more fees if the size of the transaction is bigger.

I have one concern. There are two ways to apply the minimum fee: one is the consensus' minimum fee. CodeChain nodes will drop the transactions that have less than the consensus' minimum fee. The other one is each node's minimum fee. Each node can reject to propagate or to mine transactions that have small fees.

IMO, we should implement fee-per-byte minimum fees in both places.

贡献指南

打开贡献指南

调研方向

未指定任何文件、测试或入口点。首先跟踪交易费用验证,以及拒绝、传播或挖掘交易的节点路径,然后确定交易大小以及 CPU 和磁盘成本如何在共识验证和节点策略中共同决定最低费用。

由索引模型根据 Issue 内容生成。

评估

技术栈
rust
领域
blockchain
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。