Open mxinden opened 4 years ago
@gabreal any thoughts on this? Not sure it is worth fixing given that Substrate now exposes its metrics directly.
Not sure whether the dotexporter will be useful in the future. I'm happy to implement it though if it's not taking huge efforts. Do you have an idea how this can be achieved in python?
As far as I can tell
chain_getBlock
returns the block height as a scale encoded integer. For all block number values within the range [0, 2^6) one can ignore the fact that it is SCALE encoded (given that it would be within the single byte mode) and can parse it as a HEX. Once one exceeds the before mentioned range one can not ignore the fact that it is scale encoded.https://github.com/paritytech/dotexporter/blob/0ff8736291f4837faeb41223757bd33f24975418/dotexporter.py#L93-L97