Ref #17: Define types, logic, tests
This commit adds the BlockchainConfiguration type, which contains the values to be voted on by producers. It also adds the algorithm to create a BlockchainConfiguration containing the median values from a vector of BlockchainConfigurations. Finally, it adds a testcase which verifies that the median calculation is performed correctly.
Showing
tests/tests/misc_tests.cpp
0 → 100644
想要评论请 注册 或 登录