python-bitcoinlib
python-bitcoinlib copied to clipboard
Refactor and some test for RPC
I couldn't connect to the testnet by cookie. First commit fixes it. Then I tried to refactor a bit to flatten the structure of the config parser. Added some tests.
We can't change the name testnet to testnet3, as that would break backwards compatibility unnecessarily.
Excuse my ignorance, but where does testnet work?
Should I create a new class with testnet3?
Ah sorry, no I am incorrect. My concern was that changing 'testnet' to 'testnet3' would break SelectParams(). But that function has it's own set of names. That said, I think I'll merge https://github.com/petertodd/python-bitcoinlib/pull/234 first and do a minor release with that fix first.