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

Build Blockbook mock server #76

Open
placer14 opened this issue Feb 26, 2019 · 1 comment
Open

Build Blockbook mock server #76

placer14 opened this issue Feb 26, 2019 · 1 comment

Comments

@placer14
Copy link
Member

We will need a Blockbook mock server which can operate similar to a regtest server for our QA/integration test suite. We had an insight spike at #28 which would be a good pattern to start with.

Mock should be able to:

  • create funds for any address
  • simulate new transactions found
  • simulate any number of new found blocks
  • respond with "reasonable outputs" for all endpoints (also considering simulated values)
@placer14
Copy link
Member Author

We might consider reviewing how blockbook handles their integration tests and finding out how we can produce their verifications for our purposes: https://github.com/trezor/blockbook/blob/master/tests/rpc/rpc.go

  • (👍) I would prefer that we had some live server rather than some mock software that risks becoming obsolete and using their integration tests might shed insight on using some mock which is closer to reality.
  • (👎) On the other hand, blockbook is under heavy development and we risk our test suite rotting if their library migrates and we do not move swiftly with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant