Altcoin - genesis block - TypeError: __init__() takes exactly 2 arguments (3 given)

1

I'm trying to use the genesis script from innova to generate a genesis block of Xevan_hash

https://github.com/innovacoin/GenesisH0/blob/master/genesis.py

I'm using these parameters: python genesis.py -a xevan_hash -z "a news string" -p "myprivate key"

and I always get this error:

Traceback (most recent call last):
  File "genesis.py", line 224, in <module>
    main()
  File "genesis.py", line 15, in main
    tx = create_transaction(input_script, output_script, options)
  File "genesis.py", line 74, in create_transaction
    Bytes("version", 4),
TypeError: __init__() takes exactly 2 arguments (3 given)

Marco

Posted 2018-05-30T20:58:46.590

Reputation: 111

Answers

1

Run the following command in your terminal:

pip install construct==2.5.2

Then try to run the python script again.

apt-getschwifty

Posted 2018-05-30T20:58:46.590

Reputation: 303