diff options
-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 ac6d7315c..e6fe81aa4 100644 --- a/core/vm/oracle_contracts.go +++ b/core/vm/oracle_contracts.go @@ -1764,10 +1764,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) } |