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

Graceful degradation for pruned and txindex-less nodes #279

Merged
merged 11 commits into from
Feb 25, 2021

Commits on Feb 14, 2021

  1. Graceful degradation for pruned and txindex-less nodes

    `txindex` related changes:
    
    - Fetch block transactions with `getrawtransaction <txid> <blockhash>`. This works without `txindex`.
    
    - Tolerate missing previous output information and render transactions without it.
    
    Pruning related changes:
    
    - Fallback to `getblockheader` instead of `getblock` for pruned blocks. The txid list and weight/size information will be missing.
    
    - Tolerate missing block stats.
    shesek committed Feb 14, 2021
    Configuration menu
    Copy the full SHA
    4b8df29 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    323b7aa View commit details
    Browse the repository at this point in the history
  3. Don't attempt to retrieve transactions without the blockhash, unless …

    …txindex is available
    shesek committed Feb 14, 2021
    Configuration menu
    Copy the full SHA
    5c66c3c View commit details
    Browse the repository at this point in the history
  4. Allow explicitly specifying the transaction height

    i.e. `/tx/<txid>?height=<height>`. This can work without txindex.
    
    When txindex is disabled, the block page links to the transactions with
    this parameter set.
    shesek committed Feb 14, 2021
    Configuration menu
    Copy the full SHA
    ddda7fe View commit details
    Browse the repository at this point in the history
  5. Try loading transactions without a blockhash, in case they're in the …

    …mempool
    
    But still avoid unnecessarily loading prevouts
    shesek committed Feb 14, 2021
    Configuration menu
    Copy the full SHA
    445fb06 View commit details
    Browse the repository at this point in the history
  6. Support txid@height searches

    Also:
    - Use nicer-looking /tx/<txid>@<height> URLs
    - Simplify by removing some unnecessary code
    - Fix a bug where searching for invalid block height hanged
    shesek committed Feb 14, 2021
    Configuration menu
    Copy the full SHA
    66410a7 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    9f7a578 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    f02f98e View commit details
    Browse the repository at this point in the history
  9. Provide a more useful message when txindex is off

    Also changed session.userMessage to render as markdown,
    hopefully that's okay?
    shesek committed Feb 14, 2021
    Configuration menu
    Copy the full SHA
    0cef27a View commit details
    Browse the repository at this point in the history

Commits on Feb 18, 2021

  1. Display fee of mempool transactions

    Using the information from `getmempooletry`.
    shesek committed Feb 18, 2021
    Configuration menu
    Copy the full SHA
    5526d18 View commit details
    Browse the repository at this point in the history

Commits on Feb 19, 2021

  1. Lookup txid in external Electrum txindex

    This only works with Electrs and requires enabling BTCEXP_ELECTRUM_TXINDEX.
    
    See: romanz/electrs@a0a3d4f
    shesek committed Feb 19, 2021
    Configuration menu
    Copy the full SHA
    bea32a6 View commit details
    Browse the repository at this point in the history