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

feature: add block_headers and blocks streams full APIs (w/ checkpoint and reorg handling) #10

Merged
merged 18 commits into from
Aug 11, 2022

Commits on Jul 7, 2022

  1. feature: implement an initial mempool.space websocket client, and lib…

    …rary for block-events from #3
    oleonardolima committed Jul 7, 2022
    Configuration menu
    Copy the full SHA
    67e5f0a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7816922 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2b4f04a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c6f3505 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    71778c0 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    1a4bf12 View commit details
    Browse the repository at this point in the history
  7. wip(feat+refactor): add fn to process candidate BlockHeaders, handle …

    …reorg and yield BlockEvent
    oleonardolima committed Jul 7, 2022
    Configuration menu
    Copy the full SHA
    220be90 View commit details
    Browse the repository at this point in the history
  8. wip(refactor+docs): extract fns to cache struct, and add documentatio…

    …n for fns, enums and structs
    oleonardolima committed Jul 7, 2022
    Configuration menu
    Copy the full SHA
    0ce755d View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    3902f51 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    d199590 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    d6b282f View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    3c8191b View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    2ad93bc View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2022

  1. Configuration menu
    Copy the full SHA
    f8ce1ef View commit details
    Browse the repository at this point in the history
  2. feat: add full block stream api, better error handling

    - use TryStream instead of stream, returning result instead
    - use `?` operator instead of unwraping and panicking
    - add new mempool.space endpoints for http client
    - add features for wss:// and https:// usage
    - add features for api versioning based on mempool.space backend
    oleonardolima committed Jul 26, 2022
    Configuration menu
    Copy the full SHA
    2b9e908 View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2022

  1. refactor: do not use features expect two base_url instead, and improv…

    …e error handling
    
    - refactor and update http client, url usage and methods
    - refactor and add creation methods for cache struct, use specific method to build
      initial one
    - add `get_block_header` method in http client, and refactor lib to use `bitcoin::BlockHeader`
      instead of custom mempool.space `BlockExtended` struct
    - refactor lib and websocket to improve error handling, update some `unwrap()` usage and
      match errors for messages in `WebSocketStream`
    - remove duplicated/unused deps, and use only necessary features
    oleonardolima committed Aug 9, 2022
    Configuration menu
    Copy the full SHA
    4148fc1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fa4775f View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2022

  1. fix(test): docs and integration tests

    - bump mempool/backend docker container version to v2.4.1
    - update api+websocket client to handle genesis blocks without prev_blockhash
    - update and fix integration tests to new fns and structure
    oleonardolima committed Aug 11, 2022
    Configuration menu
    Copy the full SHA
    c52c1b4 View commit details
    Browse the repository at this point in the history