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

Estimate an array of Operations async #171

Open
simonmcl opened this issue Mar 3, 2020 · 0 comments
Open

Estimate an array of Operations async #171

simonmcl opened this issue Mar 3, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@simonmcl
Copy link
Collaborator

simonmcl commented Mar 3, 2020

Operations are estimated individually when using policy: .estimate. When dealing with an array of operations where operation 2 depends on operation 1, estimation will fail to return the correct values, as the second operation will fail.

It would be useful to have a standalone method to estimate bigger operations in an async manner. Something like:

tezosNodeClient.feeEstimator.estimate(operations: ops) { result in
    switch result {
        case .success(let operations):
            // do something with new operations

        case .failure(let error):
            print("Error: \(error)")
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant