0xMiden / 0xMiden/node

Reject transactions that consume fee notes

Abierto
#2,558 0 comentarios 1 reacción 1 asignado Reclamado por @Mirko-von-Leipzig Ver en GitHub
block-producer mempool rpc
Lenguaje dominante
Rust
Estrellas
104
Forks
138
Merge medio
1 d 13 h
PR fusionados (30 d)
56

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.