Subtracting burned supply from absolute
for voting quorum
This commit is contained in:
parent
4df8c37c05
commit
0904c72402
1 changed files with 2 additions and 1 deletions
|
@ -2983,7 +2983,8 @@ rai::process_return rai::ledger::process (MDB_txn * transaction_a, rai::block co
|
|||
rai::uint128_t rai::ledger::supply (MDB_txn * transaction_a)
|
||||
{
|
||||
auto unallocated (account_balance (transaction_a, rai::genesis_account));
|
||||
auto absolute_supply (rai::genesis_amount - unallocated);
|
||||
auto burned (account_pending (transaction_a, 0));
|
||||
auto absolute_supply (rai::genesis_amount - unallocated - burned);
|
||||
auto adjusted_supply (absolute_supply - inactive_supply);
|
||||
return adjusted_supply <= absolute_supply ? adjusted_supply : 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue