55#ifndef BITCOIN_TEST_UTIL_LLMQ_TESTS_H
66#define BITCOIN_TEST_UTIL_LLMQ_TESTS_H
77
8- #include < llmq/params.h>
9- #include < llmq/commitment.h>
10- #include < llmq/clsig.h>
8+ #include < arith_uint256.h>
119#include < bls/bls.h>
1210#include < consensus/params.h>
11+ #include < llmq/clsig.h>
12+ #include < llmq/commitment.h>
13+ #include < llmq/params.h>
1314#include < primitives/transaction.h>
14- #include < uint256.h>
15- #include < arith_uint256.h>
1615#include < random.h>
17- #include < streams.h>
1816#include < serialize.h>
17+ #include < streams.h>
1918#include < test/util/setup_common.h>
19+ #include < uint256.h>
2020
2121#include < vector>
2222
@@ -83,7 +83,7 @@ inline std::vector<bool> CreateBitVector(size_t size, const std::vector<size_t>&
8383}
8484
8585// Serialization round-trip test helper
86- template <typename T>
86+ template <typename T>
8787inline bool TestSerializationRoundtrip (const T& obj)
8888{
8989 CDataStream ss (SER_NETWORK, PROTOCOL_VERSION);
@@ -100,15 +100,9 @@ inline bool TestSerializationRoundtrip(const T& obj)
100100}
101101
102102// Helper to create deterministic test data
103- inline uint256 GetTestQuorumHash (uint32_t n)
104- {
105- return ArithToUint256 (arith_uint256 (n));
106- }
103+ inline uint256 GetTestQuorumHash (uint32_t n) { return ArithToUint256 (arith_uint256 (n)); }
107104
108- inline uint256 GetTestBlockHash (uint32_t n)
109- {
110- return ArithToUint256 (arith_uint256 (n) << 32 );
111- }
105+ inline uint256 GetTestBlockHash (uint32_t n) { return ArithToUint256 (arith_uint256 (n) << 32 ); }
112106
113107} // namespace testutils
114108} // namespace llmq
0 commit comments