btcsim icon indicating copy to clipboard operation
btcsim copied to clipboard

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

Open devturi opened this issue 3 years ago • 1 comments

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'

devturi avatar May 28 '21 12:05 devturi

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)

ammarlam10 avatar Jan 19 '22 17:01 ammarlam10