mirror of
https://github.com/codex-storage/das-research.git
synced 2025-02-24 08:48:29 +00:00
Fix shape nbCols and nbRows
This commit is contained in:
parent
a1f43578db
commit
3292d70c1a
@ -80,13 +80,13 @@ class Node:
|
|||||||
self.columnIDs = set(columns)
|
self.columnIDs = set(columns)
|
||||||
if (self.vpn * self.shape.custodyRows) > self.shape.nbRows:
|
if (self.vpn * self.shape.custodyRows) > self.shape.nbRows:
|
||||||
self.logger.warning("Row custody (*vpn) larger than number of rows!", extra=self.format)
|
self.logger.warning("Row custody (*vpn) larger than number of rows!", extra=self.format)
|
||||||
self.rowIDs = range(nbRows)
|
self.rowIDs = range(self.shape.nbRows)
|
||||||
else:
|
else:
|
||||||
self.rowIDs = set(random.sample(range(self.shape.nbRows), self.vpn*self.shape.custodyRows))
|
self.rowIDs = set(random.sample(range(self.shape.nbRows), self.vpn*self.shape.custodyRows))
|
||||||
|
|
||||||
if (self.vpn * self.shape.custodyCols) > self.shape.nbCols:
|
if (self.vpn * self.shape.custodyCols) > self.shape.nbCols:
|
||||||
self.logger.warning("Column custody (*vpn) larger than number of columns!", extra=self.format)
|
self.logger.warning("Column custody (*vpn) larger than number of columns!", extra=self.format)
|
||||||
self.columnIDs = range(nbCols)
|
self.columnIDs = range(self.shape.nbCols)
|
||||||
else:
|
else:
|
||||||
self.columnIDs = set(random.sample(range(self.shape.nbCols), self.vpn*self.shape.custodyCols))
|
self.columnIDs = set(random.sample(range(self.shape.nbCols), self.vpn*self.shape.custodyCols))
|
||||||
|
|
||||||
|
@ -70,7 +70,7 @@ class1ratios = [0.8]
|
|||||||
|
|
||||||
# Number of validators per beacon node
|
# Number of validators per beacon node
|
||||||
validatorsPerNode1 = [1]
|
validatorsPerNode1 = [1]
|
||||||
validatorsPerNode2 = [500]
|
validatorsPerNode2 = [5]
|
||||||
|
|
||||||
# Set uplink bandwidth in megabits/second
|
# Set uplink bandwidth in megabits/second
|
||||||
bwUplinksProd = [200]
|
bwUplinksProd = [200]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user