[Bug] Truncated ARCHOR_HEIGHT
leads to less coinbase_reward
than expected
#2426
Labels
bug
Something isn't working
does not block mainnet
For when we make decisions that this will not block mainnet.
https://hackerone.com/reports/2315255
Summary:
ARCHOR_HEIGHT
is truncated and is less than the realreal_archor_height
. This leads tocoinbase_reward
being only 80% of expected.Proof-of-Concept (PoC)
ANCHOR_HEIGHT
is defined as:This means
ANCHOR_HEIGHT
is2
and the underlying realreal_archor_height
should be2.5
.While calculating
coinbase_reward
inanchor_block_reward_at_height
function, theanchor_block_reward
is calculated as:This formula is designed to double
STARTING_SUPPLY
in 10 years. AsANCHOR_HEIGHT
is less than the real value,anchor_block_reward_at_height
is also less. This will cause thecoinbase_reward
to be only 80% of the expected reward.Summary:
Truncated
ARCHOR_HEIGHT
leads to lesscoinbase_reward
than expectedThe text was updated successfully, but these errors were encountered: