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
Block fees are transferred to the proposer here:
astria/crates/astria-sequencer/src/app/mod.rs
Lines 1064 to 1076 in c765408
And block fees are updated here:
astria/crates/astria-sequencer/src/assets/state_ext.rs
Lines 197 to 199 in c765408
But
get_and_increase_block_fees()is only called in Transfer and Sequence actions:astria/crates/astria-sequencer/src/sequence/action.rs
Line 70 in c765408
astria/crates/astria-sequencer/src/accounts/action.rs
Line 121 in c765408
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