aboutsummaryrefslogtreecommitdiffstats
path: root/dex/governance.go
diff options
context:
space:
mode:
authorSonic <sonic@cobinhood.com>2018-10-16 17:01:19 +0800
committerWei-Ning Huang <w@dexon.org>2018-12-19 20:54:27 +0800
commit4f2617ae78da30a29deaddeb9cd6a2cf6d00d88e (patch)
tree997b6e9d0ad73b9ee88028eeebe85678ef9ae677 /dex/governance.go
parenta9f70b56420502d7af5f38d318456d6de20c05eb (diff)
downloaddexon-4f2617ae78da30a29deaddeb9cd6a2cf6d00d88e.tar
dexon-4f2617ae78da30a29deaddeb9cd6a2cf6d00d88e.tar.gz
dexon-4f2617ae78da30a29deaddeb9cd6a2cf6d00d88e.tar.bz2
dexon-4f2617ae78da30a29deaddeb9cd6a2cf6d00d88e.tar.lz
dexon-4f2617ae78da30a29deaddeb9cd6a2cf6d00d88e.tar.xz
dexon-4f2617ae78da30a29deaddeb9cd6a2cf6d00d88e.tar.zst
dexon-4f2617ae78da30a29deaddeb9cd6a2cf6d00d88e.zip
dex: implement peerSetLoop
Diffstat (limited to 'dex/governance.go')
-rw-r--r--dex/governance.go5
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"]