Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testnet address generation and handling #18

Open
venzen opened this issue May 2, 2014 · 1 comment
Open

testnet address generation and handling #18

venzen opened this issue May 2, 2014 · 1 comment

Comments

@venzen
Copy link

venzen commented May 2, 2014

It would be useful for bitc to be able to generate and handle testnet addresses.

Currently, when running on the testnet (-T) the app loads mainnet addresses from the wallet.cfg file, and when generating an address with

$ ./bitc -T -a myTestnetAddr

a mainnet address is generated and added to wallet.cfg.

@MuesliReep
Copy link

To work with testnet you need to manually configure base58.h

Change the following values to their testnet values:

   PUBKEY_ADDRESS       = 0,
   SCRIPT_ADDRESS       = 5,
   PRIVKEY_ADDRESS      = 128,

Testnet:

   PUBKEY_ADDRESS       = 111,
   SCRIPT_ADDRESS       = 196,
   PRIVKEY_ADDRESS      = 239,

Recompile and run again with -T. Bitc should now work with testnet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants