Subject of the issue
After a fast catchup, fetching the messagepack encoded first block from the API returns a 404.
Steps to reproduce
In this test, we use the conduit profile and a version of algod which causes followers to pause after a fast catchup. This makes the issue easier to reproduce.
mkdir test_data
algocfg profile set conduit -d "test_data"
algocfg set -p EndpointAddress -v "0.0.0.0:8080" -d "test_data"
cp /path/to/go-algorand/installer/genesis/betanet/genesis.json test_data/genesis.json
goal node start -d "test_data"
goal node catchup -d "test_data" 26000000#LLCDX3RAAYVU7T4ZIHBVEK4SJCIAHK4IIJLVI52SJGJIBYJHZ75Q
- wait for catchup
watch goal node status -d "test_data"
curl -H "Authorization: Bearer "$(cat test_data/algod.token) "http://127.0.0.1:8080/v2/blocks/26000000?format=msgpack"
Note: format=json works: curl -H "Authorization: Bearer "$(cat test_data/algod.token) "http://127.0.0.1:8080/v2/blocks/26000000?format=json"
Expected behaviour
The msgpack encoded block is returned.
Actual behaviour
An error: {"message":"failed to retrieve information from the ledger"}
Subject of the issue
After a fast catchup, fetching the messagepack encoded first block from the API returns a 404.
Steps to reproduce
In this test, we use the conduit profile and a version of algod which causes followers to pause after a fast catchup. This makes the issue easier to reproduce.
mkdir test_dataalgocfg profile set conduit -d "test_data"algocfg set -p EndpointAddress -v "0.0.0.0:8080" -d "test_data"cp /path/to/go-algorand/installer/genesis/betanet/genesis.json test_data/genesis.jsongoal node start -d "test_data"goal node catchup -d "test_data" 26000000#LLCDX3RAAYVU7T4ZIHBVEK4SJCIAHK4IIJLVI52SJGJIBYJHZ75Qwatch goal node status -d "test_data"curl -H "Authorization: Bearer "$(cat test_data/algod.token) "http://127.0.0.1:8080/v2/blocks/26000000?format=msgpack"Note:
format=jsonworks:curl -H "Authorization: Bearer "$(cat test_data/algod.token) "http://127.0.0.1:8080/v2/blocks/26000000?format=json"Expected behaviour
The msgpack encoded block is returned.
Actual behaviour
An error:
{"message":"failed to retrieve information from the ledger"}