diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/vm/oracle_contracts.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/vm/oracle_contracts.go b/core/vm/oracle_contracts.go index cd11dc051..b9525e00b 100644 --- a/core/vm/oracle_contracts.go +++ b/core/vm/oracle_contracts.go @@ -1768,10 +1768,14 @@ func (g *GovernanceContract) payFine(nodeAddr common.Address) ([]byte, error) { node.Fined = new(big.Int).Sub(node.Fined, g.contract.Value()) g.state.UpdateNode(nodeOffset, node) - // TODO: paid fine should be added to award pool. + // Pay the fine to governance owner. + g.evm.StateDB.AddBalance(g.state.Owner(), g.contract.Value()) g.state.emitFinePaid(nodeAddr, g.contract.Value()) + g.state.CalNotarySetSize() + g.state.CalDKGSetSize() + return g.useGas(GovernanceActionGasCost) } |