-
Notifications
You must be signed in to change notification settings - Fork 56
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
Ensure consistency in data request execution across libraries #2140
Comments
For example this function is missing the precondition logic, used in data request tests:
|
Another example is the retrieval timeout: the witnet-toolkit does not implement that feature so sometimes it can "hang", breaking the bridge. See witnet/witnet-price-feeds-poller#34 |
Here witnet nodes ensure that less than 20% of the data sources are errors:
But the witnet-toolkit seems to use a different percentage, right @guidiaz ? |
Indeed. Witnet-toolkit solved successfully a 7-source pf, when 2 of them were emitting errors. That is, a 28% of failing sources passed through. |
It seems that the toolkit is using Line 121 in 2fa9a2f
So not sure what could be the cause of the observed behavior. |
This is not true, that 0.2 is the minimum_consensus: at least 20% of the data sources are not errors. This is equivalent to 80% of the data sources being errors, so it is unlikely to be what's happening here. In that case the data request would resolve to |
Found a possible explanation, see #2306 |
PR #2139 fixes a mismatch between the execution of data requests by the node and the execution of data requests using the witnet-toolkit.
We should ensure that there are no more issues like this, by unifying all the "precondition/postcondition" logic in one place and adding tests in all the places that use
witnet_rad
as a library: node, wallet, cli, toolkit, node tests, ...The text was updated successfully, but these errors were encountered: