I have two questions:
First, what is nodeID = (self.topo.rank * self.config.maxNodesPerRank) + i in your network.py using for. Because self.topo.rank is always 0
second, when I ran the test.py, it gave me the following result:
Traceback (most recent call last):
File "/Users/nien-ting/Desktop/shardSim-master/test.py", line 23, in
mySimulation()
File "/Users/nien-ting/Desktop/shardSim-master/test.py", line 20, in mySimulation
sim.run()
File "/Users/nien-ting/Desktop/shardSim-master/shardSim/simulator.py", line 56, in run
self.net.tick()
File "/Users/nien-ting/Desktop/shardSim-master/shardSim/network.py", line 44, in tick
node.tick()
File "/Users/nien-ting/Desktop/shardSim-master/shardSim/node.py", line 167, in tick
self.validate()
File "/Users/nien-ting/Desktop/shardSim-master/shardSim/node.py", line 130, in validate
self.proposers.append(self.currentCommittee[0])
IndexError: list index out of range
could you tell me if I didn't run it right or something.
I have two questions:
First, what is nodeID = (self.topo.rank * self.config.maxNodesPerRank) + i in your network.py using for. Because self.topo.rank is always 0
second, when I ran the test.py, it gave me the following result:
Traceback (most recent call last):
File "/Users/nien-ting/Desktop/shardSim-master/test.py", line 23, in
mySimulation()
File "/Users/nien-ting/Desktop/shardSim-master/test.py", line 20, in mySimulation
sim.run()
File "/Users/nien-ting/Desktop/shardSim-master/shardSim/simulator.py", line 56, in run
self.net.tick()
File "/Users/nien-ting/Desktop/shardSim-master/shardSim/network.py", line 44, in tick
node.tick()
File "/Users/nien-ting/Desktop/shardSim-master/shardSim/node.py", line 167, in tick
self.validate()
File "/Users/nien-ting/Desktop/shardSim-master/shardSim/node.py", line 130, in validate
self.proposers.append(self.currentCommittee[0])
IndexError: list index out of range
could you tell me if I didn't run it right or something.