fusion44 / blitz_api

A management backend for the RaspiBlitz project written in Python / FastAPI
MIT License
19 stars 18 forks source link

Refactor get-block-count to return an int with block height #198

Open fusion44 opened 1 year ago

fusion44 commented 1 year ago

Currently a call to get-block-count yields a JSON string like this: "{\"result\":786420,\"error\":null,\"id\":\"0\"}\n"

Refactor this to return an int with the current block height and raise HTTPExceptions on eventual errors.