0xMiden / 0xMiden/node

Reject transactions that consume fee notes

未关闭
#2,558 0 条评论 1 个 reaction 已指派 1 人 已被 @Mirko-von-Leipzig 认领 在 GitHub 查看
block-producer mempool rpc
主要语言
Rust
星标
104
派生
138
平均合并
1 天 13 小时
30 天内合并 PR
56

描述

Only the batch builder is allowed to consume these.

Otherwise we would allow:

1. tx a emits fee note a'.
2. tx b emits fee note b' but also consumes (aka steals) a'. This is possible because fee notes are floating.

This would lead to confusing situations in the mempool where a fee note would be attempted to consume multiple times; or in the case where both a & b land in the same batch, that the batch builder doesn't even see a'.

The simplest short term patch is to simply disallow such transactions.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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