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

malicious miner #5

Open
Misbah-khan786 opened this issue Jun 16, 2022 · 0 comments
Open

malicious miner #5

Misbah-khan786 opened this issue Jun 16, 2022 · 0 comments

Comments

@Misbah-khan786
Copy link

The run simulation always have from .miner import Miner
ImportError: attempted relative import with no known parent package

Traceback (most recent call last):
File "C:\Users\Misbah Khan\PycharmProjects\PHANTOM1\phantom\network_simulation\run_simulation.py", line 114, in
run_simulation()
File "C:\Users\Misbah Khan\PycharmProjects\PHANTOM1\phantom\network_simulation\run_simulation.py", line 88, in run_simulation
simulation = Simulation(honest_hash_rates=honest_hash_rates,
File "C:\Users\Misbah Khan\PycharmProjects\PHANTOM1\phantom\network_simulation\simulation.py", line 150, in init
self._network = Network(self._propagation_delay_parameter, self._median_speed,
File "C:\Users\Misbah Khan\PycharmProjects\PHANTOM1\phantom\network_simulation\network.py", line 47, in init
self._total_network_dag.add(self._GENESIS_BLOCK)
File "C:\Users\Misbah Khan\PycharmProjects\PHANTOM1\phantom\phantom\phantom.py", line 94, in add
self._G.node[global_id][self._BLOCK_DATA_KEY] = block
AttributeError: 'DiGraph' object has no attribute 'node'. Did you mean: '_node'?

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