A few days ago I reinstalled the OS on a machine I run with a full 0.14.2 node (which I compiled from source). I made a backup of my wallet.dat file, reinstalled the OS, and then restored my backup of the blockchain + wallet.dat file. So far so good. I then generated a new address using "bitcoin-cli getnewaddress" and made a withdrawal from an exchange to that address. The withdrawal has been confirmed in more than 10,000 blocks now, but the balance is not showing up when I run "bitcoin-cli getbalance", and the transaction is not showing up when I run "bitcoin-cli listtransactions".
More details, and things that look correct:
- The transaction was part of block 0000000000000000018e18a6ad7d3c271fb426c77a50793c76ea37f4bbca679b, which has more than 10,000 confirmations now
- When I run "bitcoin-cli validateaddress theaddress" it shows "ismine" as true, and gives me the hdkeypath and so forth
- When I run "bitcoin-cli getaddressesbyaccount """ it lists the address I used
- blockchain.info confirms the tx went through, and confirms that the address has the expected balance
Things that are incorrect:
- "bitcoin-cli getbalance" does not reflect the expected balance
- "bitcoin-cli listtransactions" does not show the transaction
- "bitcoin-cli getreceivedbyaddress theaddress" shows 0.00000000
All of these things make me think that the bitcoin is secure and not lost, but perhaps somehow I misconfigured Bitcoin Core when I installed it and restored my wallet.dat file. I looked through my debug.log and didn't see anything that looked too suspicious. Can someone give me a recommendation on how to proceed from here?
Presuming that the rescan does not fix it -
It would be interesting to run a test with a 0.14.2 that was not compiled from source, just the standard download....