8000 Add FlowV2 to supportedAmendments · github-cloud/rippled@2d53ee4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2d53ee4

Browse files
seelabsmiguelportilla
authored andcommitted
Add FlowV2 to supportedAmendments
1 parent 66f0caa commit 2d53ee4

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

src/ripple/app/main/Amendments.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ supportedAmendments ()
4343
{ "C1B8D934087225F509BEB5A8EC24447854713EE447D277F69545ABFA0E0FD490 Tickets" },
4444
{ "DA1BD556B42D85EA9C84066D028D355B52416734D3283F85E216EA5DA6DB7E13 SusPay" },
4545
{ "6781F8368C4771B83E8B821D88F580202BCB4228075297B19E4FDC5233F1EFDC TrustSetAuth" },
46-
{ "42426C4D4F1009EE67080A9B7965B44656D7714D104A72F9B4369F97ABF044EE FeeEscalation" }
46+
{ "42426C4D4F1009EE67080A9B7965B44656D7714D104A72F9B4369F97ABF044EE FeeEscalation" },
47+
{ "5CC22CFF2864B020BD79E0E1F048F63EF3594F95E650E43B3F837EF1DF5F4B26 FlowV2"}
4748
};
4849
}
4950

src/ripple/app/tests/AmendmentTable.test.cpp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include <ripple/basics/chrono.h>
2525
#include <ripple/basics/Log.h>
2626
#include <ripple/core/ConfigSections.h>
27+
#include <ripple/protocol/Feature.h>
2728
#include <ripple/protocol/PublicKey.h>
2829
#include <ripple/protocol/SecretKey.h>
2930
#include <ripple/protocol/digest.h>
@@ -33,6 +34,12 @@
3334
namespace ripple
3435
{
3536

37+
namespace detail {
38+
extern
39+
std::vector<std::string>
40+
supportedAmendments ();
41+
}
42+
3643
class AmendmentTable_test final : public beast::unit_test::suite
3744
{
3845
private:
@@ -731,6 +738,14 @@ class AmendmentTable_test final : public beast::unit_test::suite
731738
}
732739
}
733740

741+
void
742+
testSupportedAmendments ()
743+
{
744+
for (auto const& amend : detail::supportedAmendments ())
745+
expect (amend.substr (0, 64) ==
746+
to_string (feature (amend.substr (65))));
747+
}
748+
734749
void run ()
735750
{
736751
testConstruct();
@@ -742,6 +757,7 @@ class AmendmentTable_test final : public beast::unit_test::suite
742757
testVoteEnable ();
743758
testDetectMajority ();
744759
testLostMajority ();
760+
testSupportedAmendments ();
745761
}
746762
};
747763

0 commit comments

Comments
 (0)
0