bit-c / bitc

MIT License
103 stars 23 forks source link

Testnet function incompatible with bitcoin faucets #12

Open combwattle opened 10 years ago

combwattle commented 10 years ago

Hi all,

I tried ./bitc -T and obtained a test address. I tried to acquire test bitcoins from a few faucet sites below, and all of them failed saying that the test address is not valid. I assume bitc accesses the original Testnet instead of the latest Testnet3. Is there a plan to address this problem?

http://testnet.bitcoin.peercoinfaucet.com/ http://faucet.xeno-genesis.com/ http://kuttler.eu/bitcoin/faucet/

mx4 commented 10 years ago

Yes, it's a known issue. I just implemented the plumbing required to connect to the testnet network, but addresses haven't yet been taken care of. The testnet addresses use a different prefix, and some adjustments need to be made when testnet is in use.

Cf enum key_address in base58.h: PUBKEY_ADDRESS_TEST = 111, SCRIPT_ADDRESS_TEST = 196, PRIVKEY_ADDRESS_TEST = 239,