Open
Description
The current logic of indexers is implemented in a sub-optimal (from the performance perspective) fashion: many requests for txes are repeated, significantly increasing validation time for the large wallet histories.
Specifically, things which can be improved:
- caching all transactions returned by Electrum
get_history
and using them in resolving previous transaction inputs instead of always queryingget_transaction
method - adding transactions returned as a previous inputs for the cache, which will prevent repeated calls retrieving the same transactions later (if a tx have multiple outputs it can be reported as previous transaction for each of the outputs)
- complete implementation of the
update
method which can leverage the knowledge of past wallet transaction to significantly reduce the number of requests to the indexer
Metadata
Metadata
Assignees
Type
Projects
Status
In Progress