Function Ledger.applySlashing
Apply slashing to the current state
When a node is slashed, two actions are taken: - First, it is "removed" from the validator set; In practice, we store the height at which a node is slashed. - Second, its stake is consumed: One refund is created to the key controlling the stake, and a penalty is sent to the commons budget.
This is the first action that happens during block externalization, so that slashed UTXOs are not spent by transactions.
Parameters
Name | Description |
---|---|
header | The BlockHeader containing the slashing information |