dncurrency/nano/node/election_behavior.hpp
Colin LeMahieu 0e441a9128
Remove inclusion of election.hpp from other headers
Moves election_behavior enum and vote_with_weight_info classes in to their own files.
Before:
[118/118] Linking CXX executable rpc_test
ninja  1208.77s user 85.03s system 875% cpu 2:27.78 total
After:
[39/39] Linking CXX executable rpc_test
ninja  338.18s user 25.74s system 714% cpu 50.953 total
2024-03-20 14:04:44 +00:00

22 lines
316 B
C++

#pragma once
namespace nano
{
enum class election_behavior
{
normal,
/**
* Hinted elections:
* - shorter timespan
* - limited space inside AEC
*/
hinted,
/**
* Optimistic elections:
* - shorter timespan
* - limited space inside AEC
* - more frequent confirmation requests
*/
optimistic,
};
}