File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,8 @@ supportedAmendments ()
43
43
{ " C1B8D934087225F509BEB5A8EC24447854713EE447D277F69545ABFA0E0FD490 Tickets" },
44
44
{ " DA1BD556B42D85EA9C84066D028D355B52416734D3283F85E216EA5DA6DB7E13 SusPay" },
45
45
{ " 6781F8368C4771B83E8B821D88F580202BCB4228075297B19E4FDC5233F1EFDC TrustSetAuth" },
46
- { " 42426C4D4F1009EE67080A9B7965B44656D7714D104A72F9B4369F97ABF044EE FeeEscalation" }
46
+ { " 42426C4D4F1009EE67080A9B7965B44656D7714D104A72F9B4369F97ABF044EE FeeEscalation" },
47
+ { " 5CC22CFF2864B020BD79E0E1F048F63EF3594F95E650E43B3F837EF1DF5F4B26 FlowV2" }
47
48
};
48
49
}
49
50
Original file line number Diff line number Diff line change 24
24
#include < ripple/basics/chrono.h>
25
25
#include < ripple/basics/Log.h>
26
26
#include < ripple/core/ConfigSections.h>
27
+ #include < ripple/protocol/Feature.h>
27
28
#include < ripple/protocol/PublicKey.h>
28
29
#include < ripple/protocol/SecretKey.h>
29
30
#include < ripple/protocol/digest.h>
33
34
namespace ripple
34
35
{
35
36
37
+ namespace detail {
38
+ extern
39
+ std::vector<std::string>
40
+ supportedAmendments ();
41
+ }
42
+
36
43
class AmendmentTable_test final : public beast::unit_test::suite
37
44
{
38
45
private:
@@ -731,6 +738,14 @@ class AmendmentTable_test final : public beast::unit_test::suite
731
738
}
732
739
}
733
740
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
+
734
749
void run ()
735
750
{
736
751
testConstruct ();
@@ -742,6 +757,7 @@ class AmendmentTable_test final : public beast::unit_test::suite
742
757
testVoteEnable ();
743
758
testDetectMajority ();
744
759
testLostMajority ();
760
+ testSupportedAmendments ();
745
761
}
746
762
};
747
763
You can’t perform that action at this time.
0 commit comments