Open israellevin opened 10 years ago
@israellevin can you test my fix? I'm not sure this should be merged though if the rest of the code is based off the older pycoin. I'm still working on getting everything running, so I don't have an env to test with yet.
nevermind... it's going to take quite a bit to update the whole code base to run with the new pycoin version. I'm not too familiar with either project though, so it may take me a while to get it running.
Cool. I'll be happy to test when you have something stable.
you can look at my branch... I made some more updates. It runs now, but will need updating by someone that understands the code more to make it completely work.
I also noticed that it looks like running from a local bitcoind appears to be broken, unless there's a guide on how to configure that properly.
I've simply pinned pycoin version to 0.23 in setup.py. Following each release is fool's errand anyway, these libs change a bit too often.
running from a local bitcoind appears to be broken
It very well might be, for me the priority is to make the default configuration working.
But it's easy to run chromanode on your own machine so it will work with your local bitcoind. Then you can instruct it to use your chromanode instance:
,/ngccc-cli.py setval chromanode_url http://localhost:8080/
This is preferred for testing since this way you can test the whole stack (including SPV implementation).
Is there any documentation on how to run chromanode?
As for the libraries, it would be nice if they at least kept backwards compatibility while updating. I may continue trying to update it as a way to start understanding how the code works though.
./chromanode.py 8081 testnet
where 8081 is port, and testnet is needed if you want testnet mode. It then connects to local bitcoind and starts downloading block headers. It might take like 20 minutes, but it is kinda usable even if not fully sync'd.
After installing a new version with
python setup.py develop
(also happens withpython setup.py install
) and running ngccc-cli.py I get the following error:It seems that pycoin.tx no longer has this
SecretExponentSolver
. Two possible workarounds are commenting out the import and the part that uses it, or downgrading to an older pycoin version, like so: