cyber.governsystem smart contract contains the logic for selecting active validators and distributing remuneration for block production in accordance with the DPoS provisions.
onblockaction is a system operation and is not accessible to an external user. It is called by the
cyber.biossmart contract. The operation contains the logic of block production, including the logic of token issuance and the appointment of validators. This action has the following form:
producerparameter is a name of validator that succeed producing the next block.
cyber.biossmart contract activates the
onblockaction after each block produced by validators. Calling
onblockrequires authorization of the
cyber.governsmart contract account.
setshiftcall) was later than schedule_resize_min_delay (14 days).
shiftparameter sets the rate of change in a number of validators. Valid values limited by contract are (-1, 0, +1).
cyber.prodsaccount is required.
burnrewardevent reports on burning an award allocated to a validator. A validator is not rewarded if no one block was produced by him during one round. The highlighted reward to validators is marked on their special account at the beginning of the round. When the validator produces a block, he marks these funds as requested and at the beginning of the next round they are transferred to a validator account. If the validator skips block production, then this award is burned.
account— validator account whose funds are burned.
amount— amount of funds burned.