-
Notifications
You must be signed in to change notification settings - Fork 115
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
go/worker/txnscheduler: CheckTx should use a queue #2548
Comments
So basiclly, right now, the txs are checked before added in txnscheduler. The checks including like whether there is enough balance in the accout or whether it's a successful contract call, right? The code looks complicated now. |
The checks are disabled by default for now, so the behavior is the same as before. If enabled, the checks depend on the runtime that's used. In our oasis-runtime, the checks are done here: https://github.com/oasislabs/oasis-runtime/blob/9bc96c04d1e6503096aaefdfa6b999b26b972943/src/methods.rs#L26-L45 |
Thanks for the reply. So according to what you said, this workerHost.Call will call the check in oasis-runtime(the link you provides), right? |
Yes, the |
PR #2502 implemented optional checking of transactions before queuing them in the transaction scheduler. However, the way it's currently implemented, each check is done serially, which can slow-down execution if checking is enabled.
This should be optimized by using a separate queue for CheckTx requests and batching them, as suggested in #2502 (comment).
The text was updated successfully, but these errors were encountered: