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

Make heuristic evaluation for extra fee #47

Closed
alexvanin opened this issue Sep 25, 2020 · 1 comment · Fixed by #404
Closed

Make heuristic evaluation for extra fee #47

alexvanin opened this issue Sep 25, 2020 · 1 comment · Fixed by #404
Labels
enhancement Improving existing functionality neofs-ir Inner Ring node application issues

Comments

@alexvanin
Copy link
Contributor

Inner ring can't calculate precise fee for contract invocation with signature collection. While most of the nodes only register signature, one node will trigger method execution, that requires much more gas to spend. Amount of extra fee depends on method complexity. Some methods depends on inner ring size, e.g. container creation triggers nep-5 transfers to every single inner ring nodes. The more inner ring nodes we have, the more gas method spend.

So there should be some heuristic evaluation before each invocation for extra fee.

There are also different solution approaches for this issue. For example inner ring nodes can repeat tx that not accepted in block: tx that trigger method execution lacks gas after testinvoke evaluation. But next time testinvoke evaluation will be precise. However this approach can slower all chain operations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improving existing functionality neofs-ir Inner Ring node application issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants