diff options
Diffstat (limited to 'dex/governance.go')
-rw-r--r-- | dex/governance.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/dex/governance.go b/dex/governance.go index 22452dea3..a78cf2d4f 100644 --- a/dex/governance.go +++ b/dex/governance.go @@ -132,6 +132,11 @@ func (d *DexconGovernance) CRS(round uint64) coreCommon.Hash { return coreCommon.Hash(s.CRS(big.NewInt(int64(round)))) } +func (d *DexconGovernance) LenCRS() uint64 { + s := d.getGovState() + return s.LenCRS().Uint64() +} + // ProposeCRS send proposals of a new CRS func (d *DexconGovernance) ProposeCRS(signedCRS []byte) { method := vm.GovernanceContractName2Method["proposeCRS"] |