renaming Validator object to Node

In the SubnetDas model Nodes behave as previous validators,
getting samples (whole columns) from GossipSub.

Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
Csaba Kiraly 2023-12-07 12:37:12 +01:00
parent cc51b2ba45
commit 5951a90056
No known key found for this signature in database
GPG Key ID: 0FE274EE8C95166E
2 changed files with 3 additions and 3 deletions

View File

@ -88,7 +88,7 @@ class Simulator:
endC = offsetC+((j+1)*self.shape.chiC*self.shape.vpn2)
r = rows[startR:endR]
c = columns[startC:endC]
val = Validator(i, int(not i!=0), self.logger, self.shape, self.config, r, c)
val = Node(i, int(not i!=0), self.logger, self.shape, self.config, r, c)
self.logger.debug("Node %d has row IDs: %s" % (val.ID, val.rowIDs), extra=self.format)
self.logger.debug("Node %d has column IDs: %s" % (val.ID, val.columnIDs), extra=self.format)
assignedRows = assignedRows + list(r)
@ -97,7 +97,7 @@ class Simulator:
self.nodeColumns.append(val.columnIDs)
else:
val = Validator(i, int(not i!=0), self.logger, self.shape, self.config)
val = Node(i, int(not i!=0), self.logger, self.shape, self.config)
if i == self.proposerID:
val.initBlock()
else:

View File

@ -31,7 +31,7 @@ class Neighbor:
self.sendQueue = deque()
class Validator:
class Node:
"""This class implements a validator/node in the network."""
def __repr__(self):