Skip to content
This repository was archived by the owner on Mar 14, 2023. It is now read-only.
This repository was archived by the owner on Mar 14, 2023. It is now read-only.

ChainGraph API for electrum #72

@LLFourn

Description

@LLFourn
  1. We want to have the chaingraph enforce that for every txid in sparse_chain there is a full tx in the graph. To do this we'll have to make those fields private and we'll have to have an error case when the changeset is applied.
  2. Electrum needs to fetch incrementally. First it tells you txids you are interested in (associated with your script pubkeys) and then you batch fetch the transactions. We need an API to do this. It makes sense for electrum to return something like a SparseChain from the first requests for related txids to the scripts. We then need to turn the txids we're missing into full transactions in a ChainGraph that can be applied. Hint: maybe we can have a missing function on ChainGraph that somehow returns what's missing and then a method on the electrum API to take that set of missing things and turn it into a ChainGraph with a batch request.

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions