Skip to content

Commit

Permalink
PIP-31: add pending consumptions
Browse files Browse the repository at this point in the history
  • Loading branch information
b00f committed Nov 14, 2024
1 parent 1dc2c3c commit 14db1ca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions PIPs/pip-31.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ To understand the Consumptional Fee Model, we first need to define consumption.
Transactions are sequences of bytes that validators decode, process, and store in their local database.
Consumption is defined as the number of bytes stored over the last 8,640 blocks [^1]
for a specific account that signed the transactions.
If an account has any pending transactions in the pool, their size is also added to the account’s consumption.

#### Coefficient

Expand Down Expand Up @@ -104,6 +105,9 @@ increasing the value for each address by the size of its transactions.
Simultaneously, the block from 8640 blocks ago would be retrieved,
and the value for each address would be decreased by the size of its transactions.

To calculate pending consumption, we iterate over all transactions in the pool
to determine the pending consumption for each specific account.

#### New Account Detection

To determine if an account is new and hasn't sent any transactions yet,
Expand Down

0 comments on commit 14db1ca

Please sign in to comment.