Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Use memory weight instead of exact weight when computing wallet reps. #4555

Merged
merged 1 commit into from
Apr 13, 2024

Commits on Apr 13, 2024

  1. Use memory weight instead of exact weight.

    This function is used to check if an account has enough weight to be a rep. If this account isn't in memory because of its high weight, by definition it doesn't have enough weight.
    This also eliminates a database transaction while holding the reps_cache_mutex in nano::wallets::compute_reps. This mutex is in several hot paths of code such as nano::wallets::reps being called from message_visitor::confirm_req
    clemahieu committed Apr 13, 2024
    Configuration menu
    Copy the full SHA
    151722f View commit details
    Browse the repository at this point in the history