aboutsummaryrefslogtreecommitdiffstats
path: root/dex/handler.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2019-03-16 15:02:13 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:27:22 +0800
commitac03172a8a9d8c217f405973bc096b06c5c5b4e0 (patch)
treee11a959aea4b4a03a49fd2be43035955adb6363d /dex/handler.go
parentc292584bf5c08031689f1fc080fde2c6b3b78218 (diff)
downloadgo-tangerine-ac03172a8a9d8c217f405973bc096b06c5c5b4e0.tar
go-tangerine-ac03172a8a9d8c217f405973bc096b06c5c5b4e0.tar.gz
go-tangerine-ac03172a8a9d8c217f405973bc096b06c5c5b4e0.tar.bz2
go-tangerine-ac03172a8a9d8c217f405973bc096b06c5c5b4e0.tar.lz
go-tangerine-ac03172a8a9d8c217f405973bc096b06c5c5b4e0.tar.xz
go-tangerine-ac03172a8a9d8c217f405973bc096b06c5c5b4e0.tar.zst
go-tangerine-ac03172a8a9d8c217f405973bc096b06c5c5b4e0.zip
dex: rename lattice to core
Diffstat (limited to 'dex/handler.go')
-rw-r--r--dex/handler.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/dex/handler.go b/dex/handler.go
index efd0538f4..76219c747 100644
--- a/dex/handler.go
+++ b/dex/handler.go
@@ -790,7 +790,7 @@ func (pm *ProtocolManager) handleMsg(p *peer) error {
// Block proposer-only messages.
- case msg.Code == LatticeBlockMsg:
+ case msg.Code == CoreBlockMsg:
if !pm.isBlockProposer {
break
}
@@ -871,7 +871,7 @@ func (pm *ProtocolManager) handleMsg(p *peer) error {
}
blocks := pm.cache.blocks(hashes)
log.Debug("Push blocks", "blocks", blocks)
- return p.SendLatticeBlocks(blocks)
+ return p.SendCoreBlocks(blocks)
case msg.Code == PullVotesMsg:
if !pm.isBlockProposer {
break
@@ -991,11 +991,11 @@ func (pm *ProtocolManager) BroadcastRecords(records []*enr.Record) {
}
}
-// BroadcastLatticeBlock broadcasts the lattice block to all its peers.
-func (pm *ProtocolManager) BroadcastLatticeBlock(block *coreTypes.Block) {
+// BroadcastCoreBlock broadcasts the core block to all its peers.
+func (pm *ProtocolManager) BroadcastCoreBlock(block *coreTypes.Block) {
pm.cache.addBlock(block)
for _, peer := range pm.peers.Peers() {
- peer.AsyncSendLatticeBlocks([]*coreTypes.Block{block})
+ peer.AsyncSendCoreBlocks([]*coreTypes.Block{block})
}
}