node
node copied to clipboard
performance: improve performance of the places where `GetBlockHeightByHash` is used
Describe the Issue
For now, we used GetBlockHeightByHash to get outbound height to post vote. The performance is now 180 ms per RPC call for a typical bitcoin block. This can be improved in future by employing block cache.
Expected Outcome A description of what outcome you are seeking.