Skip to content

Proposer is not paid correct block fees #1333

@ethanoroshiba

Description

@ethanoroshiba

Block fees are transferred to the proposer here:

// gather block fees and transfer them to the block proposer
let fees = self
.state
.get_block_fees()
.await
.context("failed to get block fees")?;
for (asset, amount) in fees {
state_tx
.increase_balance(fee_recipient, asset, amount)
.await
.context("failed to increase fee recipient balance")?;
}

And block fees are updated here:
/// Adds `amount` to the block fees for `asset`.
#[instrument(skip_all)]
async fn get_and_increase_block_fees<TAsset>(

But get_and_increase_block_fees() is only called in Transfer and Sequence actions:
.get_and_increase_block_fees(&self.fee_asset, fee, Self::full_name())

.get_and_increase_block_fees(&self.fee_asset, fee, Self::full_name())

get_and_increase_block_fees() needs to be added to the other actions with associated fees so the proposer is paid the correct amount.

┆Issue Number: ENG-680

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingsequencerpertaining to the astria-sequencer crate

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions