node icon indicating copy to clipboard operation
node copied to clipboard

performance: improve performance of the places where `GetBlockHeightByHash` is used

Open ws4charlie opened this issue 1 year ago • 0 comments

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.

ws4charlie avatar May 23 '24 16:05 ws4charlie