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>2019-04-09 21:32:50 +0800
commitcbc8f1ac578845341b02563210184ff849c38c22 (patch)
tree9aadf4c8bcb68677eb4c6a6be60ed4d553b1c870 /dex/governance.go
parentf380e368335fa323d3f914943ceb077f4413d5a3 (diff)
downloadgo-tangerine-cbc8f1ac578845341b02563210184ff849c38c22.tar
go-tangerine-cbc8f1ac578845341b02563210184ff849c38c22.tar.gz
go-tangerine-cbc8f1ac578845341b02563210184ff849c38c22.tar.bz2
go-tangerine-cbc8f1ac578845341b02563210184ff849c38c22.tar.lz
go-tangerine-cbc8f1ac578845341b02563210184ff849c38c22.tar.xz
go-tangerine-cbc8f1ac578845341b02563210184ff849c38c22.tar.zst
go-tangerine-cbc8f1ac578845341b02563210184ff849c38c22.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"]