I am very new to bitcoin but finally managed to get it all installed and compiled. I am following along with Mastering Bitcoin.
There is an example to use
getrawtransaction as follows:
bitcoin-cli getrawtransaction 0627052b6f28912f2703066a912ea577f2ce4da4caa5a5fbd8a57286c345c2f2.
I get the error
no such mempool transaction. Using block explorer, this transaction appears in block 277316.
I noticed that when I run
bitcoin-cli getblockcount, I only get 180024, which was mined in 2012. Why am I getting such old data?