tezos-checker / checker

An in-development "robocoin" system for the Tezos blockchain
24 stars 16 forks source link

Update helpers for injecting operations #158

Closed dorranh closed 3 years ago

dorranh commented 3 years ago

This PR adds (another) module to our Python client which implements updated versions of wait_operations and inject which better suit our deployment / DevOps use cases (i.e. they are more stable). It also switches the project back over to pytezos on PyPI from my fork.

I would prefer to avoid adding more code to our client library, but after all of the issues we've been running into with the default inject() method I think this is the best solution for the time being.

A nice benefit of these changes is that they allow for faster baking times with time_between_blocks now set to 1s. This enables e2e tests to run quite a bit faster. While the numbers will vary, in my case the before/after times were pretty dramatic:

Before: 687.729s After: 181.772s

dorranh commented 3 years ago

Excellent, I'm glad to hear that it worked. Thanks for the reviews, guys! Just updated the docstrings and will merge once CI finishes.