sebastianst / GenesisZ

Mine the Genesis Block for your Zcashy altcoin
Other
25 stars 27 forks source link

return '%s#%i %s' % (coin, *be.get_latest(coin)) #2

Closed asciitohex closed 7 years ago

asciitohex commented 7 years ago

./genesis.py with options

File "./genesis.py", line 161
    return '%s#%i %s' % (coin, *be.get_latest(coin))
                               ^
SyntaxError: invalid syntax
sebastianst commented 7 years ago

What python version do you use? I use 3.6.2. Your version seems to not know the unpacking operator *. Also please pull my latest commit, which fixes the zcash api call in blockexplorer.py

asciitohex commented 7 years ago

thank you sebastianst, my python version is 3.6.2 also in virtualenv I will pull latest commit soon

asciitohex commented 7 years ago

(GenesisZ) root@ubuntu:~/GenesisZ# ./genesis.py -s "/root/silentarmy/sa-solver --nonces 4000 -i" -t 1477641360 Traceback (most recent call last): File "./genesis.py", line 231, in main() File "./genesis.py", line 29, in main eh = buildEquihashInputHeader(args) File "./genesis.py", line 146, in buildEquihashInputHeader txhash = tx.GetHash() File "/root/GenesisZ/local/lib/python3.5/site-packages/bitcoin/core/init.py", line 404, in GetHash raise AttributeError("CMutableTransaction.GetHash() has been removed; use GetTxid() instead") AttributeError: CMutableTransaction.GetHash() has been removed; use GetTxid() instead

sebastianst commented 7 years ago

Looks like this is related to the API changes in the bitcoin module. Closing this in favor of #4

sebastianst commented 6 years ago

I just did a fresh checkout of GenesisZ and silentarmy and cannot reproduce this error.

# pip freeze
certifi==2018.4.16
chardet==3.0.4
idna==2.6
pyblake2==1.1.2
python-bitcoinlib==0.10.1
requests==2.18.4
urllib3==1.22