Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: 'NoneType' object is not subscriptable #6

Open
liuliangxin opened this issue May 15, 2023 · 0 comments
Open

TypeError: 'NoneType' object is not subscriptable #6

liuliangxin opened this issue May 15, 2023 · 0 comments

Comments

@liuliangxin
Copy link

Traceback (most recent call last):
File "D:\Python Project\phantom\network_simulation\run_simulation.py", line 118, in
run_simulation()
File "D:\Python Project\phantom\network_simulation\run_simulation.py", line 92, in run_simulation
simulation = Simulation(honest_hash_rates=honest_hash_rates,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Python Project\phantom\network_simulation\simulation.py", line 150, in init
self._network = Network(self._propagation_delay_parameter, self._median_speed,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Python Project\phantom\network_simulation\network.py", line 47, in init
self._total_network_dag.add(self._GENESIS_BLOCK)
File "D:\Python Project\phantom\phantom\phantom.py", line 103, in add
self._G.node[global_id][self._BLOCK_DATA_KEY] = block
~~~~~~~~~~~~^^^^^^^^^^^
TypeError: 'NoneType' object is not subscriptable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant