Bitcoin node generating invalid addresses

0

I'm running both a bitcoin and a litecoin node, both are generating invalid addresses.

My LTC generated address: MV6eGvkbkgcDZLDpK1WQeZLMmx3PHZmXC7

My BTC generated address: 2MvuZyhhGHCUcFPHCEUNeBbGEKYJ5wpytjk

I'm generating them in the bitcoin-cli/litecoin-cli with getnewaddress

What am I doing wrong and how to fix it?

raphadko

Posted 2018-06-10T22:37:46.293

Reputation: 125

2Those look like valid P2SH testnet addresses. Is that not what you expected?Pieter Wuille 2018-06-10T22:49:33.167

not really, the node is pointing to the main net, what could I be doing wrong?raphadko 2018-06-10T23:17:47.347

Do you have -testnet or -regtest on the command line? Or in bitcoin.conf?Pieter Wuille 2018-06-10T23:18:51.787

What does getbestblockhash print out?Nate Eldredge 2018-06-10T23:44:41.450

it gets the last block: 85c058d5541a7eafdb159ebb9f00be39dbfd17a41fed5d33104c075afeebef9fraphadko 2018-06-11T00:09:39.983

no -testnet or -regtest on command line or bitcoin.confraphadko 2018-06-11T00:11:27.493

MV63... appears to be a valid P2SH Litecoin address and contains LTC 0.19 according to https://chainz.cryptoid.info/ltc/address.dws?MV6eGvkbkgcDZLDpK1WQeZLMmx3PHZmXC7.htm. So everything may be correct on the Litecoin side. The Bitcoin one really does look like testnet; what does getbestblockhash print out there?

Nate Eldredge 2018-06-11T02:30:51.593

2MVu... is a valid P2SH testnet address, anyway; I just sent some coins to it :-) https://www.blocktrail.com/tBTC/address/2MvuZyhhGHCUcFPHCEUNeBbGEKYJ5wpytjk

Nate Eldredge 2018-06-11T02:33:30.660

No answers