diff options
author | Wei-Ning Huang <w@dexon.org> | 2019-03-11 12:10:39 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:27:22 +0800 |
commit | 36f960e0bf3b3a9e3ba460dad2e8d4c870a8b8b1 (patch) | |
tree | 21a79d7b2c1c0899db627e8778ab3dc1cf26601b | |
parent | 3aa1712606870dc9204ec38ed5eafa1be5d713c8 (diff) | |
download | go-tangerine-36f960e0bf3b3a9e3ba460dad2e8d4c870a8b8b1.tar.gz go-tangerine-36f960e0bf3b3a9e3ba460dad2e8d4c870a8b8b1.tar.zst go-tangerine-36f960e0bf3b3a9e3ba460dad2e8d4c870a8b8b1.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 } |