Skip to content

Commit 3c4e4db

Browse files
committed
Add PPLNS consensus tests: 7 tests for desired_weight, bootstrap, verified chain, target guard
1 parent 9db0cba commit 3c4e4db

3 files changed

Lines changed: 721 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ jobs:
8888
test_doge_chain test_compact_blocks \
8989
test_multiaddress_pplns test_pplns_stress \
9090
test_hash_link test_decay_pplns \
91+
test_pplns_consensus \
9192
test_phase0_live test_phase1_live test_phase2_live \
9293
test_phase3_live test_phase4_embedded test_phase4_live \
9394
-j$(nproc)

test/CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,4 +226,13 @@ if (BUILD_TESTING AND GTest_FOUND)
226226
${Boost_LIBRARIES}
227227
)
228228
gtest_add_tests(test_decay_pplns "" AUTO)
229+
230+
add_executable(test_pplns_consensus test_pplns_consensus.cpp)
231+
target_link_libraries(test_pplns_consensus PRIVATE
232+
GTest::gtest_main GTest::gtest
233+
core ltc
234+
nlohmann_json::nlohmann_json
235+
${Boost_LIBRARIES}
236+
)
237+
gtest_add_tests(test_pplns_consensus "" AUTO)
229238
endif()

0 commit comments

Comments
 (0)