diff options
author | Wei-Ning Huang <w@dexon.org> | 2019-03-11 12:10:39 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:57 +0800 |
commit | aba923d4065e0b1f716a54539058a932bd6a89e0 (patch) | |
tree | 31843f7bd16ddc48d1c0c47e4b4a626650dd4418 | |
parent | a9b1ad951f5cb3d032dca899a595b6c781aefb3e (diff) | |
download | dexon-aba923d4065e0b1f716a54539058a932bd6a89e0.tar.gz dexon-aba923d4065e0b1f716a54539058a932bd6a89e0.tar.zst dexon-aba923d4065e0b1f716a54539058a932bd6a89e0.zip |
dex: rename IsLatticeSyncing to IsCoreSyncing (#238)
-rw-r--r-- | dex/api.go | 4 | ||||
-rw-r--r-- | dex/backend.go | 4 | ||||
-rw-r--r-- | dex/blockproposer.go | 2 |
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 } |