Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into signing
Browse files Browse the repository at this point in the history
* upstream/master:
  Changes required due to libxrpl refactor (54)
  • Loading branch information
ximinez committed Jul 2, 2024
2 parents 8291db3 + 89ab7e5 commit fdbe94c
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 25 deletions.
10 changes: 7 additions & 3 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,15 @@ DerivePointerAlignment: false
DisableFormat: false
ExperimentalAutoDetectBinPacking: false
ForEachMacros: [ Q_FOREACH, BOOST_FOREACH ]
IncludeBlocks: Regroup

IncludeCategories:
- Regex: '^<(BeastConfig)'
Priority: 0
- Regex: '^<(ripple)/'
- Regex: '^<xrpl/.*>'
Priority: 2
- Regex: '^<(test)/'
Priority: 1
- Regex: '^<.*\.h>'
Priority: 0
- Regex: '^<(boost)/'
Priority: 3
- Regex: '.*'
Expand Down
16 changes: 9 additions & 7 deletions src/ValidatorKeys.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,19 @@

#include <ValidatorKeys.h>

#include <ripple/basics/StringUtilities.h>
#include <ripple/basics/base64.h>
#include <ripple/json/json_reader.h>
#include <ripple/json/to_string.h>
#include <ripple/protocol/HashPrefix.h>
#include <ripple/protocol/Serializer.h>
#include <ripple/protocol/Sign.h>
#include <xrpl/basics/StringUtilities.h>
#include <xrpl/basics/base64.h>
#include <xrpl/json/json_reader.h>
#include <xrpl/json/to_string.h>
#include <xrpl/protocol/HashPrefix.h>
#include <xrpl/protocol/Serializer.h>
#include <xrpl/protocol/Sign.h>

#include <boost/algorithm/clamp.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/filesystem.hpp>
#include <boost/regex.hpp>

#include <fstream>

namespace ripple {
Expand Down
6 changes: 4 additions & 2 deletions src/ValidatorKeys.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@
*/
//==============================================================================

#include <ripple/protocol/KeyType.h>
#include <ripple/protocol/SecretKey.h>
#include <xrpl/protocol/KeyType.h>
#include <xrpl/protocol/SecretKey.h>

#include <boost/optional.hpp>

#include <cstdint>
#include <string>
#include <vector>
Expand Down
12 changes: 6 additions & 6 deletions src/ValidatorKeysTool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
*/
//==============================================================================

#include <ValidatorKeys.h>
#include <ValidatorKeysTool.h>

#include <ValidatorKeys.h>
#include <xrpl/basics/StringUtilities.h>
#include <xrpl/basics/base64.h>
#include <xrpl/basics/strHex.h>
#include <xrpl/beast/core/SemanticVersion.h>
#include <xrpl/beast/unit_test.h>

#include <ripple/basics/StringUtilities.h>
#include <ripple/basics/base64.h>
#include <ripple/basics/strHex.h>
#include <ripple/beast/core/SemanticVersion.h>
#include <ripple/beast/unit_test.h>
#include <boost/filesystem.hpp>
#include <boost/format.hpp>
#include <boost/preprocessor/stringize.hpp>
Expand Down
1 change: 1 addition & 0 deletions src/ValidatorKeysTool.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
//==============================================================================

#include <boost/optional.hpp>

#include <vector>

namespace boost {
Expand Down
4 changes: 3 additions & 1 deletion src/test/KeyFileGuard.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@
*/
//==============================================================================

#include <ripple/beast/unit_test.h>
#include <xrpl/beast/unit_test.h>

#include <boost/filesystem.hpp>

#include <fstream>

namespace ripple {
Expand Down
5 changes: 3 additions & 2 deletions src/test/ValidatorKeysTool_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@

#include <ValidatorKeys.h>
#include <ValidatorKeysTool.h>

#include <test/KeyFileGuard.h>

#include <ripple/basics/base64.h>
#include <ripple/protocol/SecretKey.h>
#include <xrpl/basics/base64.h>
#include <xrpl/protocol/SecretKey.h>

namespace ripple {

Expand Down
10 changes: 6 additions & 4 deletions src/test/ValidatorKeys_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@
*/
//==============================================================================

#include <ripple/basics/StringUtilities.h>
#include <ripple/basics/base64.h>
#include <ripple/protocol/HashPrefix.h>
#include <ripple/protocol/Sign.h>
#include <ValidatorKeys.h>

#include <test/KeyFileGuard.h>

#include <xrpl/basics/StringUtilities.h>
#include <xrpl/basics/base64.h>
#include <xrpl/protocol/HashPrefix.h>
#include <xrpl/protocol/Sign.h>

namespace ripple {

namespace tests {
Expand Down

0 comments on commit fdbe94c

Please sign in to comment.