I build a docker image from the v0.17.0 tag of docker-stellar-core-horizon.
Then, I created a local standalone network from that image:
docker run --rm -d -p "8000:8000" -p "11626:11626" \
-p "5433:5432" --name stellar synesso/stellar:v0.17.0 --standalone
The instance root document is:
curl -s http://localhost:8000/ | jq '.|del(._links)'
{
"horizon_version": "v0.17.0",
"core_version": "v10.2.0",
"history_latest_ledger": 1783,
"history_elder_ledger": 2,
"core_latest_ledger": 1783,
"network_passphrase": "Standalone Network ; February 2017",
"current_protocol_version": 10,
"core_supported_protocol_version": 10
}
I create and fund a few accounts, and make a non-native payment.
$ curl -s "http://localhost:8000/accounts/GBZX...MADI/payments" | \
jq '._embedded.records[3] | del(._links)'
{
"id": "25769807878",
"paging_token": "25769807878",
"transaction_successful": true,
"source_account": "GBZXN7PIRZGNMHGA7MUUUF4GWPY5AYPV6LY4UV2GL6VJGIQRXFDNMADI",
"type": "path_payment",
"type_i": 2,
"created_at": "2019-02-27T04:40:11Z",
"transaction_hash": "c5e29c7d19c8af4fa932e6bd3214397a6f20041bc0234dacaac66bf155c02ae9",
"asset_type": "credit_alphanum12",
"asset_code": "Chinchilla",
"asset_issuer": "GAAYHQF2PNZ3H6LE5AX3UJSGUR2DQXHHGXYMHF32TDYF2FFPTTOFI3PA",
"from": "GBZXN7PIRZGNMHGA7MUUUF4GWPY5AYPV6LY4UV2GL6VJGIQRXFDNMADI",
"to": "GCYTIVTAEF6AJOZG5TVXE7OZE7FLUXJUJSYAZ3IR2YH4MNINDJJX4DXF",
"amount": "0.0000001",
"path": [],
"source_amount": "0.0000001",
"source_max": "0.0000001",
"source_asset_type": "credit_alphanum12",
"source_asset_code": "Chinchilla",
"source_asset_issuer": "GBZXN7PIRZGNMHGA7MUUUF4GWPY5AYPV6LY4UV2GL6VJGIQRXFDNMADI"
}
In the Horizon DB, the history_assets
table contains the asset:
"id","asset_type","asset_code","asset_issuer"
1,"credit_alphanum12","Chinchilla","GAAYHQF2PNZ3H6LE5AX3UJSGUR2DQXHHGXYMHF32TDYF2FFPTTOFI3PA"
But the asset_stats
table contains nothing.
Because the query to load assets joins these two tables (I might be looking in the wrong place), the call to /assets
returns a 404.
curl "http://localhost:8000/assets"
{
"type": "https://stellar.org/horizon-errors/not_found",
"title": "Resource Missing",
"status": 404,
"detail": "The resource at the url requested was not found. This is usually occurs for one of two reasons: The url requested is not valid, or no data in our database could be found with the parameters provided."
}
Most likely, I am missing some important config or setup step. But I can't figure out what it is.
curl "http://localhost:8000"
?export DISABLE_ASSET_STATS="true"
and log level is set toINFO
.-e LOG_LEVEL="debug" -e DISABLE_ASSET_STATS="false"
to my docker run command, but it didn't have an effect. I will try modifying the config directly.