aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/governance.go4
-rw-r--r--core/vm/oracle_contracts.go12
2 files changed, 16 insertions, 0 deletions
diff --git a/core/governance.go b/core/governance.go
index b39fdc3c6..d40432301 100644
--- a/core/governance.go
+++ b/core/governance.go
@@ -170,6 +170,10 @@ func (d *Governance) NodeSet(round uint64) []coreCrypto.PublicKey {
return pks
}
+func (d *Governance) PurgeNotarySet(round uint64) {
+ d.nodeSetCache.Purge(round)
+}
+
func (d *Governance) NotarySet(round uint64) (map[string]struct{}, error) {
notarySet, err := d.nodeSetCache.GetNotarySet(round)
if err != nil {
diff --git a/core/vm/oracle_contracts.go b/core/vm/oracle_contracts.go
index dc09df194..3da5e3335 100644
--- a/core/vm/oracle_contracts.go
+++ b/core/vm/oracle_contracts.go
@@ -2349,6 +2349,18 @@ func (g *GovernanceContract) Run(evm *EVM, input []byte, contract *Contract) (re
return nil, errExecutionReverted
}
return res, nil
+ case "notaryParamAlpha":
+ res, err := method.Outputs.Pack(g.state.NotaryParamAlpha())
+ if err != nil {
+ return nil, errExecutionReverted
+ }
+ return res, nil
+ case "notaryParamBeta":
+ res, err := method.Outputs.Pack(g.state.NotaryParamBeta())
+ if err != nil {
+ return nil, errExecutionReverted
+ }
+ return res, nil
case "owner":
res, err := method.Outputs.Pack(g.state.Owner())
if err != nil {