diff options
Diffstat (limited to 'dex/governance.go')
-rw-r--r-- | dex/governance.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/dex/governance.go b/dex/governance.go index 4ec69c2d6..50ab7ee14 100644 --- a/dex/governance.go +++ b/dex/governance.go @@ -79,7 +79,13 @@ func (d *DexconGovernance) getGovStateAtRound(round uint64) *vm.GovernanceStateH return &vm.GovernanceStateHelper{state} } -// Configuration return the total ordering K constant. +// DexconConfiguration return raw config in state. +func (d *DexconGovernance) DexconConfiguration(round uint64) *params.DexconConfig { + s := d.getGovStateAtRound(round) + return s.Configuration() +} + +// Configuration returns the system configuration for consensus core to use. func (d *DexconGovernance) Configuration(round uint64) *coreTypes.Config { s := d.getGovStateAtRound(round) c := s.Configuration() |