3
I develop a simple Java/Maven/JSP app for bitcoin and generated the address
167Bqf3Mi3gnfhw5DhCfoYNTMxqANt3Zky
I would like to send some money to this address from a bitcoin testnet faucet. I feel it weird that none of the testNet faucet out there seems to recognize the address and indicate it as invalid. Funny thing is I used the same code for generating the address that is provided in the BitcoinJ github page.
How should I approach from here?
Thanks for the answer. This helps me a lot. The reason it was created in the first place is that I have used
public static NetworkParameters networkParameters = MainNetParams.get();. I later changed the code topublic static NetworkParameters networkParameters = TestNet3Params.get();and `else if (networkParameters == TestNet3Params.get()) {// bitcoin.setDiscovery(new HttpDiscovery(networkParameters, URI.create("http://localhost:8080/peers"),
Indeed, the new address seems to be a valid testnet address :) . Glad to be of help! – cpsola – 2017-05-31T08:01:23.750