Tezlink/Tezt Cloud: daemons for TzKT processes
Contributes to L2-268.
Why
So that they run in the background and we can run more things once they're triggered. Indeed, their processes are not returning for now, which makes it impossible to have more actions after.
How
Instantiate a daemon and use it to run TzKT-related processes (indexer and API).
Note: nothing formally makes this new module TzKT-specific, the name is purely informational.
For those of you who are not comfortable with Tezt Cloud daemons, just like the author of the request, he borrowed the code from the floodgate Tezt.
Manually testing the MR
Run
make -f etherlink.mk build
dune exec tezt/tests/cloud/main.exe -- TEZLINK --dockerfile-alias tezlink --localhost -v --tzkt-api-port 30010
before/after, and see how the loop is run after (Loop ... messages now show, it may take a little while) which was not the case before. The TzKT API is still available:
curl --silent http://localhost:30010/v1/accounts | jq -r 'map([ .address, .balance])'
Edited by Nicolas Ayache