From 2d53ee40515d67c612dccc3a13d5587193a5bb76 Mon Sep 17 00:00:00 2001 From: seelabs Date: Wed, 8 Jun 2016 13:04:16 -0400 Subject: [PATCH] Add FlowV2 to supportedAmendments --- src/ripple/app/main/Amendments.cpp | 3 ++- src/ripple/app/tests/AmendmentTable.test.cpp | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/src/ripple/app/main/Amendments.cpp b/src/ripple/app/main/Amendments.cpp index 97969c1a1..91255bff8 100644 --- a/src/ripple/app/main/Amendments.cpp +++ b/src/ripple/app/main/Amendments.cpp @@ -43,7 +43,8 @@ supportedAmendments () { "C1B8D934087225F509BEB5A8EC24447854713EE447D277F69545ABFA0E0FD490 Tickets" }, { "DA1BD556B42D85EA9C84066D028D355B52416734D3283F85E216EA5DA6DB7E13 SusPay" }, { "6781F8368C4771B83E8B821D88F580202BCB4228075297B19E4FDC5233F1EFDC TrustSetAuth" }, - { "42426C4D4F1009EE67080A9B7965B44656D7714D104A72F9B4369F97ABF044EE FeeEscalation" } + { "42426C4D4F1009EE67080A9B7965B44656D7714D104A72F9B4369F97ABF044EE FeeEscalation" }, + { "5CC22CFF2864B020BD79E0E1F048F63EF3594F95E650E43B3F837EF1DF5F4B26 FlowV2"} }; } diff --git a/src/ripple/app/tests/AmendmentTable.test.cpp b/src/ripple/app/tests/AmendmentTable.test.cpp index f5b4d28e4..baf64e5b0 100644 --- a/src/ripple/app/tests/AmendmentTable.test.cpp +++ b/src/ripple/app/tests/AmendmentTable.test.cpp @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include @@ -33,6 +34,12 @@ namespace ripple { +namespace detail { +extern +std::vector +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 (); } };