Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions src/test/evo_snapshot_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1192,11 +1192,13 @@ BOOST_FIXTURE_TEST_CASE(mnhf_signal_wire_order_is_canonical, BasicTestingSetup)
BOOST_FIXTURE_TEST_CASE(mnhf_signals_outnumbering_deployments_are_valid, BasicTestingSetup)
{
// CMNHFManager drops a signal only when a current deployment reuses its
// bit, so signals of buried EHF forks (bits 10, 11 and 12) stay in the
// map alongside V24's bit 13.
// bit, so signals of buried EHF forks stay in the map and only the
// number of version bits bounds it.
auto snapshot{SyntheticSnapshot()};
snapshot.mnhf_signals = {{10, 100}, {11, 200}, {12, 300}, {13, 400}};
BOOST_REQUIRE_GT(snapshot.mnhf_signals.size(), size_t{Consensus::MAX_VERSION_BITS_DEPLOYMENTS});
snapshot.mnhf_signals.clear();
for (int bit = 0; bit < VERSIONBITS_NUM_BITS; ++bit) {
snapshot.mnhf_signals.emplace(bit, bit);
}

BOOST_CHECK_NO_THROW(snapshot.Validate());
BOOST_CHECK_NO_THROW(GetEvoSnapshotHash(snapshot));
Expand Down
Loading