奖励、发行曲线
每个块都有奖励,这是产生新货币的唯一途径。
发行曲线:首先有“基本奖励”这个概念,然后根据时间间隔(出块速度)、总供应量、已出总额对其进行调整。
对比门罗币,规则更简单了,不再需要根据“中位数”进行调整。
GetBlockReward
//TODO trickling code is note implemented still, but we do NOT require it atleast for another 7-8 years
// the logic is same as cryptonote_basic_impl.cpp
// this file controls the logic for emission of coins at each height
// calculates block reward
原来的算法,已经不用了。
GetBlockReward_Atlantis
整体呈线性分布。
发行总量(2^64-1)、目标出块时间间隔(2分钟)、单位时间间隔出块奖励(0.6)、难度调整(3分钟)
实际发行总量
// atlantis has very simple block reward
// since our chain has already bootstrapped
// FIXME this will not workaround , when already already_generated_coins wraps around
// but we have few years, atleast 6-7 to fix it
其它:
主块占 90% 的基础奖励,副块在此基础上给 8% 奖励。
矿工收到的总收入,由主块、副块、交易手续费构成,记录在挖矿交易里。