Skip to content

Proposer: update fee payer check to account for multiple proposers #6

@MaxResnick

Description

@MaxResnick

We need to update the fee payer check to account for the fact that there are multiple proposers.

// for normal accounts
- account.lamports() >= fee
+ account.lamports() >= NUM_PROPOSERS * fee

// for nonce accounts
- account.lamports() >= fee + rent.minimum_balance(NonceState::size())
+ account.lamports() >= NUM_PROPOSERS * fee + rent.minimum_balance(NonceState::size())

We should also keep track of the fee payers we have already checked and keep a running tally of how much of the available sol in the fee payer balance has already been accounted for in fee payer checks this slot to further prevent DOS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions