|
|
@ -40,7 +40,7 @@ func (node *Node) getNeighborPeers(neighbor *sync.Map) []p2p.Peer { |
|
|
|
return tmp |
|
|
|
return tmp |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// GetSync gets sync-ed to blockchain without joining consensus
|
|
|
|
// DoSyncWithoutConsensus gets sync-ed to blockchain without joining consensus
|
|
|
|
func (node *Node) DoSyncWithoutConsensus() { |
|
|
|
func (node *Node) DoSyncWithoutConsensus() { |
|
|
|
go node.DoSyncing(node.blockchain, node.Worker, node.GetSyncingPeers, false) //Don't join consensus
|
|
|
|
go node.DoSyncing(node.blockchain, node.Worker, node.GetSyncingPeers, false) //Don't join consensus
|
|
|
|
} |
|
|
|
} |
|
|
|