Router
Contents
Modifiers
onlySystemCaller
No description
Declaration:
Functions
constructor
No description
Declaration:
Modifiers:
estimateTotalFee
Estimate daily fee and free fee left.
Declaration:
Modifiers: No modifiers
Args:
assignTransactionReward
Assign transaction reward to miner, and emit the UsageInfo
event, if the consumed fee is dailyFee
or dailyFreeFee
, it will only increase miner's share of the fee pool, otherwise, if the consumed fee is user's balance, it will add the fee to the fee pool and increase miner's share of the fee pool.
Declaration:
Modifiers:
Args:
assignBlockReward
Assign block reward, and call onAssignBlockReward
callback, it will split the block reward into two parts according to the minerRewardFactor
, one part will be directly distributed to miners as a reward, and the other part will be added to the transaction fee pool.
Declaration:
Modifiers:
Args:
slash
Slash validator by reason
Declaration:
Modifiers:
Args:
onAfterBlock
After block callback, it only can be called by system caller
Declaration:
Modifiers:
Args:
Events
UsageInfo
UsageInfo
event contains the usage information of tx, it will be automatically appended to the end of the transaction log.
Params:
Last updated