cyber.govern
system smart contract contains the logic for selecting active validators and distributing remuneration for block production in accordance with the DPoS provisions.onblock
action is a system operation and is not accessible to an external user. It is called by the cyber.bios
smart 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:producer
parameter is a name of validator that succeed producing the next block.cyber.bios
smart contract activates the onblock
action after each block produced by validators. Calling onblock
requires authorization of the cyber.govern
smart contract account.setshift
call) was later than schedule_resize_min_delay (14 days).shift
parameter sets the rate of change in a number of validators. Valid values ​​limited by contract are (-1, 0, +1).cyber.prods
account is required.burnreward
event 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.burnreward
event).suspendcand
action.