-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Fix balances query endpoint cost without indexation and behavior coins to spend with one parameter at zero #2662
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wondering about the complexity change, but if tests pass lgtm
Also wondering about this. |
#[graphql(complexity = "if query_costs().balance_query == 0 { \ | ||
(child_complexity as f32 * first.unwrap_or_default() as f32 * 0.66) as usize + \ | ||
(child_complexity as f32 * last.unwrap_or_default() as f32 * 0.66) as usize | ||
")] | ||
} else { query_costs().balance_query }")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rather it be explicit:
if indexation_set {
query_costs().balance_query
} else {
...
}
If that's not possible, let's leave a clear comment explaining the relationship between 0 and indexation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done :)
## Version 0.41.5 ### Changed - [2387](#2387): Update description `tx-max-depth` flag. - [2630](#2630): Removed some noisy `tracing::info!` logs - [2643](#2643): Before this fix when tip is zero, transactions that use 30M have the same priority as transactions with 1M gas. Now they are correctly ordered. ### Added - [2617](#2617): Add integration skeleton of parallel-executor. - [2553](#2553): Scaffold global merkle root storage crate. - [2598](#2598): Add initial test suite for global merkle root storage updates. - [2635](#2635): Add metrics to gas price service ### Fixed - [2632](#2632): Improved performance of certain async trait impls in the gas price service. - [2662](#2662): Fix balances query endpoint cost without indexation and behavior coins to spend with one parameter at zero.
Description
The two changes has been packed in one PR to speed up the release process given our deadlines.
The balance query endpoint cost if useful for the TSSDK team.
The coins to spend behaviour change roll back to the previous behavior, asked by Rust SDK team
Checklist
Before requesting review
After merging, notify other teams