Kagome
Polkadot Runtime Engine in C++17
threshold_util.cpp File Reference
#include "consensus/babe/impl/threshold_util.hpp"
#include <boost/range/adaptors.hpp>
#include <boost/range/numeric.hpp>
Include dependency graph for threshold_util.cpp:

Go to the source code of this file.

Namespaces

 kagome::consensus
 

Functions

Threshold kagome::consensus::calculateThreshold (const std::pair< uint64_t, uint64_t > &ratio, const primitives::AuthorityList &authorities, primitives::AuthorityIndex authority_index)