mirror of
https://github.com/codex-storage/das-research.git
synced 2025-02-23 16:28:27 +00:00
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:
parent
cc51b2ba45
commit
5951a90056
@ -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:
|
||||
|
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user