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

Return the block level after broadcasting an operation #49

Open
DariusParvin opened this issue Sep 4, 2021 · 2 comments
Open

Return the block level after broadcasting an operation #49

DariusParvin opened this issue Sep 4, 2021 · 2 comments
Assignees

Comments

@DariusParvin
Copy link
Contributor

The pytezos functions that broadcast operations in pytezos_contract_tester.py should return the level denoting the block height at which the operation was included in the blockchain. This functionality is missing and needs to be added.

@DariusParvin DariusParvin self-assigned this Sep 4, 2021
@DariusParvin
Copy link
Contributor Author

When this issue is fixed, it should be fixed in zeekoe as well. boltlabs-inc/zeekoe#203

@DariusParvin
Copy link
Contributor Author

@kwf do you know if we can get away without needing the level?

if not, our other options are

  1. Write something (using pytezos) that scans through blocks and returns the level of a recently confirmed operation.
    Pros - it wouldn't introduce any new dependencies.
    Cons - scanning through blocks is a slow process, and creating this function would require some digging into pytezos.

  2. Using an open source API (from the same developers as pytezos)
    Pros - The API is straightforward to use and is faster than scanning blocks
    Cons - introduces a new dependency

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