Add FlowV2 to supportedAmendments

This commit is contained in:
seelabs
2016-06-08 13:04:16 -04:00
committed by Miguel Portilla
parent 66f0caa309
commit 2d53ee4051
2 changed files with 18 additions and 1 deletions

View File

@@ -24,6 +24,7 @@
#include <ripple/basics/chrono.h>
#include <ripple/basics/Log.h>
#include <ripple/core/ConfigSections.h>
#include <ripple/protocol/Feature.h>
#include <ripple/protocol/PublicKey.h>
#include <ripple/protocol/SecretKey.h>
#include <ripple/protocol/digest.h>
@@ -33,6 +34,12 @@
namespace ripple
{
namespace detail {
extern
std::vector<std::string>
supportedAmendments ();
}
class AmendmentTable_test final : public beast::unit_test::suite
{
private:
@@ -731,6 +738,14 @@ public:
}
}
void
testSupportedAmendments ()
{
for (auto const& amend : detail::supportedAmendments ())
expect (amend.substr (0, 64) ==
to_string (feature (amend.substr (65))));
}
void run ()
{
testConstruct();
@@ -742,6 +757,7 @@ public:
testVoteEnable ();
testDetectMajority ();
testLostMajority ();
testSupportedAmendments ();
}
};