Skip to content
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

Election scheduler #3208

Merged
merged 15 commits into from
Apr 25, 2021
Merged

Election scheduler #3208

merged 15 commits into from
Apr 25, 2021

Conversation

clemahieu
Copy link
Contributor

This change replaces PoW-difficulty based prioritization with balance * time_since_use based prioritization. The scheduler currently manages two queues. A priority queue where live traffic is managed and scheduled according to vacancy in the active_transactions container and prioritized by the prioritization container. A manual queue where requests that have come through RPCs are enqueued and bypass prioritization.

… * time_since_use based prioritization. The scheduler currently manages two queues. A priority queue where live traffic is managed and scheduled according to vacancy in the active_transactions container and prioritized by the prioritization container. A manual queue where requests that have come through RPCs are enqueued and bypass prioritization.
theohax
theohax previously approved these changes Apr 19, 2021
# Conflicts:
#	nano/node/active_transactions.cpp
#	nano/node/election.cpp
#	nano/node/node.cpp
#	nano/node/vote_processor.cpp
#	nano/node/wallet.cpp
…is simplifies the election_scheduler commit itself.
# Conflicts:
#	nano/core_test/active_transactions.cpp
#	nano/core_test/bootstrap.cpp
#	nano/core_test/conflicts.cpp
#	nano/core_test/election.cpp
#	nano/core_test/ledger.cpp
#	nano/core_test/network.cpp
#	nano/core_test/node.cpp
#	nano/rpc_test/rpc.cpp
#	nano/slow_test/node.cpp
# Conflicts:
#	nano/core_test/active_transactions.cpp
#	nano/core_test/bootstrap.cpp
#	nano/core_test/conflicts.cpp
#	nano/core_test/election.cpp
#	nano/core_test/ledger.cpp
#	nano/core_test/network.cpp
#	nano/core_test/node.cpp
#	nano/rpc_test/rpc.cpp
#	nano/slow_test/node.cpp
@zhyatt zhyatt added this to the V22.0 milestone Apr 20, 2021
observe ();
}

void nano::election_scheduler::activate (nano::account const & account_a, nano::transaction const & transaction)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

transaction -> transaction_a ?

SergiySW
SergiySW previously approved these changes Apr 22, 2021
# Conflicts:
#	nano/node/node.cpp
@clemahieu clemahieu merged commit c6e52da into develop Apr 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants