mirror of
https://github.com/status-im/das-research.git
synced 2025-02-23 11:58:14 +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
|
||||
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()
|
||||
|
||||
def logIDs(self):
|
||||
@ -230,7 +231,8 @@ class Validator:
|
||||
neigh.receiving.setall(0)
|
||||
|
||||
# add newly received segments to the send queue
|
||||
self.sendQueue.extend(self.receivedQueue)
|
||||
if self.perNeighborQueue:
|
||||
self.sendQueue.extend(self.receivedQueue)
|
||||
self.receivedQueue.clear()
|
||||
|
||||
def updateStats(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user