We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
get_address_deferred_credits
in pos_final_state.rs
Currently, we iterate over all the DeferredCredits keys while we're only interested in a specific address.
We don't have to visit every keys. We might want instead to use a while loop, and query only the keys corresponding to the wanted address.
slot_serializer.serialize(cur_slot, &mut key) addr_serializer.serialize(address, &mut key) deferred_credit_prefix!(key)
In the case it's not found, go immediatly to the next existing slot key instead of iterating over all addresses.
Originally posted by @Leo-Besancon in #4152 (comment)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently, we iterate over all the DeferredCredits keys while we're only interested in a specific address.
We don't have to visit every keys. We might want instead to use a while loop, and query only the keys corresponding to the wanted address.
In the case it's not found, go immediatly to the next existing slot key instead of iterating over all addresses.
Originally posted by @Leo-Besancon in #4152 (comment)
The text was updated successfully, but these errors were encountered: