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

@@ -43,7 +43,8 @@ supportedAmendments ()
{ "C1B8D934087225F509BEB5A8EC24447854713EE447D277F69545ABFA0E0FD490 Tickets" },
{ "DA1BD556B42D85EA9C84066D028D355B52416734D3283F85E216EA5DA6DB7E13 SusPay" },
{ "6781F8368C4771B83E8B821D88F580202BCB4228075297B19E4FDC5233F1EFDC TrustSetAuth" },
{ "42426C4D4F1009EE67080A9B7965B44656D7714D104A72F9B4369F97ABF044EE FeeEscalation" }
{ "42426C4D4F1009EE67080A9B7965B44656D7714D104A72F9B4369F97ABF044EE FeeEscalation" },
{ "5CC22CFF2864B020BD79E0E1F048F63EF3594F95E650E43B3F837EF1DF5F4B26 FlowV2"}
};
}

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 ();
}
};