mirror of
https://github.com/PeernetOfficial/core.git
synced 2026-07-17 02:47:51 +01:00
Lite Packet algorithm for data transfer. It bypasses the CPU expensive Peernet Protocol packet encoding (which uses public key signing).
This commit is contained in:
@@ -38,9 +38,15 @@ func (backend *Backend) initNetwork() {
|
||||
if backend.Config.ListenWorkers == 0 {
|
||||
backend.Config.ListenWorkers = 2
|
||||
}
|
||||
if backend.Config.ListenWorkersLite == 0 {
|
||||
backend.Config.ListenWorkersLite = 2
|
||||
}
|
||||
for n := 0; n < backend.Config.ListenWorkers; n++ {
|
||||
go backend.networks.packetWorker()
|
||||
}
|
||||
for n := 0; n < backend.Config.ListenWorkersLite; n++ {
|
||||
go backend.networks.packetWorkerLite()
|
||||
}
|
||||
|
||||
// check if user specified where to listen
|
||||
if len(backend.Config.Listen) > 0 {
|
||||
|
||||
Reference in New Issue
Block a user