Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize txo lookup #76

Merged

Commits on May 30, 2024

  1. Configuration menu
    Copy the full SHA
    168e241 View commit details
    Browse the repository at this point in the history
  2. Optimize and refactor lookup_txos()

    - Avoid unnecessary copying of prev outpoints
    
    - When looking for both mempool and on-chain txos, accumulate the set of
      outpoints that remain to be looked up to avoid re-checking for them
      later again in the found set
    
    - Refactored lookup_txos() to use lookup_txo() internally rather than
      the other way around, which was less efficient
    
    - Lookup txos in mempool first, then on-chain
    
    - ChainQuery::lookup_txos() now returns a Result instead of panicking
      when outpoints are missing
    
    - Removed ChainQuery::lookup_avail_txos() and allow_missing, which are
      no longer neceesary
    shesek committed May 30, 2024
    Configuration menu
    Copy the full SHA
    e9d68b2 View commit details
    Browse the repository at this point in the history

Commits on Aug 6, 2024

  1. Configuration menu
    Copy the full SHA
    4f037c4 View commit details
    Browse the repository at this point in the history