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?

  • 2
    Those look like valid P2SH testnet addresses. Is that not what you expected? – Pieter Wuille Jun 10 '18 at 22:49
  • not really, the node is pointing to the main net, what could I be doing wrong? – raphadko Jun 10 '18 at 23:17
  • Do you have -testnet or -regtest on the command line? Or in bitcoin.conf? – Pieter Wuille Jun 10 '18 at 23:18
  • What does getbestblockhash print out? – Nate Eldredge Jun 10 '18 at 23:44
  • it gets the last block: 85c058d5541a7eafdb159ebb9f00be39dbfd17a41fed5d33104c075afeebef9f – raphadko Jun 11 '18 at 0:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.