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

API server refactor & fee features #26

Merged
merged 7 commits into from
Feb 20, 2022
Merged

API server refactor & fee features #26

merged 7 commits into from
Feb 20, 2022

Commits on Feb 13, 2022

  1. Serve block data over http

    Avoid sending large block data messages over websocket,
    which block transaction updates, especially on lower
    bandwidth connections.
    
    Instead, only send the block id over websocket, and
    then fetch over http with good caching
    mononaut committed Feb 13, 2022
    Configuration menu
    Copy the full SHA
    95cabcf View commit details
    Browse the repository at this point in the history

Commits on Feb 14, 2022

  1. Extend txs and blocks with prevouts and fees

    Fetch prevouts for solo and block transactions,
    and calculate input values & tx fees.
    
    Naive initial implementation with no caching,
    so block processing is sloooooooooooooow.
    mononaut committed Feb 14, 2022
    Configuration menu
    Copy the full SHA
    14a1c54 View commit details
    Browse the repository at this point in the history

Commits on Feb 18, 2022

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

Commits on Feb 19, 2022

  1. Refactor API/Core bridge & mempool tracking.

    API:
    - Better RPC handling (cache credentials)
    - Process transaction prevouts in dedicated Tasks
    - Consume ZMQ sequence msgs
    - Track mempool count precisely
    - Cache prevouts for mempool transactions
    - Send mempool count with every client msg, instead of reconstructing client-side
    - Only send block ids over websocket, let clients fetch the full block data via http
    
    Client:
    - Simplify transaction queue to avoid setTimeouts
      - improves experience in background tabs
      - no longer need to hold back txs, as duplicates are now handled API-side
    - Use API-supplied mempool count, instead of tracking it client-side
    - Make mempoolCount a Svelte spring store, so updates transition smoothly
    mononaut committed Feb 19, 2022
    Configuration menu
    Copy the full SHA
    e845157 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9a630ad View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    245543e View commit details
    Browse the repository at this point in the history

Commits on Feb 20, 2022

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