mirror of
https://github.com/logos-storage/das-research.git
synced 2026-01-05 22:53:07 +00:00
add validator.perNodeQueue conf option
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
parent
f67c70896c
commit
7c0fcaba78
@ -119,6 +119,7 @@ class Validator:
|
|||||||
# TODO: this should be a parameter
|
# TODO: this should be a parameter
|
||||||
self.bwUplink = 110 if not self.amIproposer else 2200 # approx. 10Mbps and 200Mbps
|
self.bwUplink = 110 if not self.amIproposer else 2200 # approx. 10Mbps and 200Mbps
|
||||||
|
|
||||||
|
self.perNodeQueue = False # keep a global queue of incoming messages for later sequential dispatch
|
||||||
self.sched = self.nextToSend()
|
self.sched = self.nextToSend()
|
||||||
|
|
||||||
def logIDs(self):
|
def logIDs(self):
|
||||||
@ -230,7 +231,8 @@ class Validator:
|
|||||||
neigh.receiving.setall(0)
|
neigh.receiving.setall(0)
|
||||||
|
|
||||||
# add newly received segments to the send queue
|
# add newly received segments to the send queue
|
||||||
self.sendQueue.extend(self.receivedQueue)
|
if self.perNeighborQueue:
|
||||||
|
self.sendQueue.extend(self.receivedQueue)
|
||||||
self.receivedQueue.clear()
|
self.receivedQueue.clear()
|
||||||
|
|
||||||
def updateStats(self):
|
def updateStats(self):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user