aboutsummaryrefslogtreecommitdiffstats
path: root/dex
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2019-03-11 12:10:39 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:57 +0800
commitaba923d4065e0b1f716a54539058a932bd6a89e0 (patch)
tree31843f7bd16ddc48d1c0c47e4b4a626650dd4418 /dex
parenta9b1ad951f5cb3d032dca899a595b6c781aefb3e (diff)
downloaddexon-aba923d4065e0b1f716a54539058a932bd6a89e0.tar.gz
dexon-aba923d4065e0b1f716a54539058a932bd6a89e0.tar.zst
dexon-aba923d4065e0b1f716a54539058a932bd6a89e0.zip
dex: rename IsLatticeSyncing to IsCoreSyncing (#238)
Diffstat (limited to 'dex')
-rw-r--r--dex/api.go4
-rw-r--r--dex/backend.go4
-rw-r--r--dex/blockproposer.go2
3 files changed, 5 insertions, 5 deletions
diff --git a/dex/api.go b/dex/api.go
index 4d39f9f6e..23f98d7df 100644
--- a/dex/api.go
+++ b/dex/api.go
@@ -139,8 +139,8 @@ func (api *PrivateAdminAPI) StopProposing() {
api.dex.StopProposing()
}
-func (api *PrivateAdminAPI) IsLatticeSyncing() bool {
- return api.dex.IsLatticeSyncing()
+func (api *PrivateAdminAPI) IsCoreSyncing() bool {
+ return api.dex.IsCoreSyncing()
}
func (api *PrivateAdminAPI) IsProposing() bool {
diff --git a/dex/backend.go b/dex/backend.go
index 6c5c03861..056a6d221 100644
--- a/dex/backend.go
+++ b/dex/backend.go
@@ -265,8 +265,8 @@ func (s *Dexon) StopProposing() {
s.bp.Stop()
}
-func (s *Dexon) IsLatticeSyncing() bool {
- return s.bp.IsLatticeSyncing()
+func (s *Dexon) IsCoreSyncing() bool {
+ return s.bp.IsCoreSyncing()
}
func (s *Dexon) IsProposing() bool {
diff --git a/dex/blockproposer.go b/dex/blockproposer.go
index 9827e1ed0..ad8b4c2b0 100644
--- a/dex/blockproposer.go
+++ b/dex/blockproposer.go
@@ -92,7 +92,7 @@ func (b *blockProposer) Stop() {
}
}
-func (b *blockProposer) IsLatticeSyncing() bool {
+func (b *blockProposer) IsCoreSyncing() bool {
return atomic.LoadInt32(&b.syncing) == 1
}