I set up a Stellar node using the quickstart docker (https://hub.docker.com/r/stellar/quickstart/).

I did the following:

Pull stellar image

sudo docker pull stellar/quickstart

Set CATCHUP_COMPLETE=true

wget https://raw.githubusercontent.com/stellar/docker-stellar-core-horizon/master/pubnet/core/etc/stellar-core.cfg
sudo sed -i '1iCATCHUP_COMPLETE=true' stellar-core.cfg
sudo mkdir -p /str/core/etc/
sudo cp stellar-core.cfg /str/core/etc/

Run the docker image

sudo docker run -d -e POSTGRES_PASSWORD=mypass -p "8000:8000" -p "11626:11626" \
   -p "11625:11625" --rm -v "/str:/opt/stellar" \
   --name stellar stellar/quickstart --pubnet

Then I use the following command to query the status:

Query

curl -s "http://localhost:8000"

Response

{
  "_links": {
    "account": {
      "href": "http://localhost:8000/accounts/{account_id}",
      "templated": true
    },
    "account_transactions": {
      "href": "http://localhost:8000/accounts/{account_id}/transactions{?cursor,limit,order}",
      "templated": true
    },
    "assets": {
      "href": "http://localhost:8000/assets{?asset_code,asset_issuer,cursor,limit,order}",
      "templated": true
    },
    "metrics": {
      "href": "http://localhost:8000/metrics"
    },
    "order_book": {
      "href": "http://localhost:8000/order_book{?selling_asset_type,selling_asset_code,selling_asset_issuer,buying_asset_type,buying_asset_code,buying_asset_issuer,limit}",
      "templated": true
    },
    "self": {
      "href": "http://localhost:8000/"
    },
    "transaction": {
      "href": "http://localhost:8000/transactions/{hash}",
      "templated": true
    },
    "transactions": {
      "href": "http://localhost:8000/transactions{?cursor,limit,order}",
      "templated": true
    }
  },
  "horizon_version": "v0.15.1",
  "core_version": "",
  "history_latest_ledger": 0,
  "history_elder_ledger": 0,
  "core_latest_ledger": 1,
  "network_passphrase": "Test SDF Network ; September 2015",
  "protocol_version": 0
}

For hours and hours, I only get history_latest_ledger=0.

Did I do anything wrong? Why does it take so long to receive the first ledger? Also my goal is to get all the history from the first ledge, is it the correct way to do it?

Thank you!

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.