Skip to content

Reject transactions that consume fee notes #2558

Description

@Mirko-von-Leipzig

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

block-producerRelated to the block producer componentmempoolRelates to the mempoolrpcRelated to the RPC component

Fields

Priority

High

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions