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

What is missing? miners.append(Miner(i, hashrates[i] * 1.0/600.0, 200*1024, seed_block, event_q, t)) #1

Open
devturi opened this issue May 28, 2021 · 1 comment

Comments

@devturi
Copy link

devturi commented May 28, 2021

I am getting the following error. Can you please tell me what is missing? is it miner_id, hashrate, verifyrate, blocksize, seed_block, event_q, t????

Traceback (most recent call last):
File "c:/btcsim/attack-51.py", line 67, in
miners.append(Miner(i, hashrates[i] * 1.0/600.0, 200*1024, seed_block, event_q, t))
TypeError: init() missing 1 required positional argument: 't'

@ammarlam10
Copy link

ammarlam10 commented Jan 19, 2022

It should be something like this
validationrate=1024 x 1024
Miner(i, hashrates[i] * 1.0/600.0,validationrate, 200*1024, seed_block, event_q, t)

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

2 participants