aboutsummaryrefslogtreecommitdiffstats
path: root/dex
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2019-04-01 22:03:46 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:59 +0800
commit37257d9e7981661d3f19eae5ea5d49bcedea3698 (patch)
tree3e9f22d1fb295dc4b9dd2f48b290abdc07b2b22a /dex
parent1b8bb239546f1703a6a0ada2211cc607b4c55b81 (diff)
downloaddexon-37257d9e7981661d3f19eae5ea5d49bcedea3698.tar.gz
dexon-37257d9e7981661d3f19eae5ea5d49bcedea3698.tar.zst
dexon-37257d9e7981661d3f19eae5ea5d49bcedea3698.zip
dexcon: correctly fine DKGSet for not producing blocks (#325)
Diffstat (limited to 'dex')
-rw-r--r--dex/downloader/testchain_test.go2
-rw-r--r--dex/recovery.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/dex/downloader/testchain_test.go b/dex/downloader/testchain_test.go
index b59a83b2c..e5c5e4d23 100644
--- a/dex/downloader/testchain_test.go
+++ b/dex/downloader/testchain_test.go
@@ -343,6 +343,6 @@ func (g *govStateFetcher) GetStateForConfigAtRound(round uint64) *vm.GovernanceS
return nil
}
-func (g *govStateFetcher) NotarySetNodeKeyAddresses(round uint64) (map[common.Address]struct{}, error) {
+func (g *govStateFetcher) DKGSetNodeKeyAddresses(round uint64) (map[common.Address]struct{}, error) {
return make(map[common.Address]struct{}), nil
}
diff --git a/dex/recovery.go b/dex/recovery.go
index adeb1f612..72d3a5376 100644
--- a/dex/recovery.go
+++ b/dex/recovery.go
@@ -479,7 +479,7 @@ func (r *Recovery) Votes(height uint64) (uint64, error) {
return 0, err
}
- notarySet, err := r.gov.NotarySetNodeKeyAddresses(r.gov.Round())
+ notarySet, err := r.gov.DKGSetNodeKeyAddresses(r.gov.Round())
if err != nil {
return 0, err
}