Bitcoin Forum

Other => Beginners & Help => Topic started by: Propogue on May 30, 2018, 05:03:10 PM



Title: [Solved] Bitcoin Core - Creating invalid addresses
Post by: Propogue on May 30, 2018, 05:03:10 PM
When I try to create an address to recieve BTC, the Bitcoin core client seems to work fine but creates addresses that are invalid.  For example: 2NGMDeJdpn1TStxeA5EcdfHy4t2jDqrv3Pa and 2NA1gSNsMBmtSRLJTU8dB9AMrgF2vMmsVMd

Also, it has lost some addresses that I created yesterday.

Can anyone help?


Title: Re: Bitcoin Core - Creating invalid addresses
Post by: TryNinja on May 30, 2018, 08:38:07 PM
Are you running your Core wallet in testnet mode?

According to List of address prefixes (https://en.bitcoin.it/wiki/List_of_address_prefixes), addresses starting with a 2 are Testnet script hash addresses.

edit: I just sent 0.998BTC (testnet) to your first address (2NGMDeJdpn1TStxeA5EcdfHy4t2jDqrv3Pa). Here is the transaction (https://live.blockcypher.com/btc-testnet/tx/3954dbfc37b55efe01dbce5cfed09483c66a84bf6884b6742bd37af8262abaef).


Title: Re: Bitcoin Core - Creating invalid addresses
Post by: BitMaxz on May 30, 2018, 08:43:10 PM
It looks like a testnet script hash this is use only for testing purposes.
Take a look at this wiki https://en.bitcoin.it/wiki/List_of_address_prefixes
I think you can try to disable it by typing this command.

Code:
-testnet

Or edit and add testnet=0 in your .conf file.


Title: Re: Bitcoin Core - Creating invalid addresses
Post by: Propogue on May 31, 2018, 06:35:23 AM
BitMaxz and TryNinja - I have no idea how come Windows 10 offered me testnet instead of the live client on start menu but you are both correct and I'm very grateful.  All working again - thanks.