go-algorand
go-algorand copied to clipboard
Refactor txpool metrics updation
Currently, transaction pool metrics are being updated once every 10 seconds in a separate go routine. It would be better to update the metrics as and when the transaction pool size changes.
Refer line 824 in node/node.go
on the master branch.
This will provide improvements for transaction pool metrics when it comes to querying time.