-
Notifications
You must be signed in to change notification settings - Fork 312
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
Faster Blockchain Implementation for testing? #690
Comments
This is also related to #543, I think :) |
I actually think this is basically a dupe of #543. It would take some extremely poor implementation decisions for a test blockchain backend to be slow 😄 |
Which is more complex, implementing |
Looking at the calls that RpcBlockchain makes, I'm not sure if implementing a dummy RpcClient would be easy:
|
The main problem with dummy RPC blockchain is not the interface imo (which although is a big task) but simulating the the core's validation logic. The main use of the blockchain for testing is to check weather transaction stuffs are created as per consensus correctly, more than sending and getting data out.. That might take some significant amount of effort to mock.. |
I'm working on a wallet with a bunch of integration tests. Currently we use RpcBlockchain for testing, but it's very slow. It would be nice if there was a fast Blockchain implementation for testing.
The text was updated successfully, but these errors were encountered: