5
5
#ifndef BITCOIN_TEST_UTIL_LLMQ_TESTS_H
6
6
#define BITCOIN_TEST_UTIL_LLMQ_TESTS_H
7
7
8
- #include < llmq/params.h>
9
- #include < llmq/commitment.h>
10
- #include < llmq/clsig.h>
8
+ #include < arith_uint256.h>
11
9
#include < bls/bls.h>
12
10
#include < consensus/params.h>
11
+ #include < llmq/clsig.h>
12
+ #include < llmq/commitment.h>
13
+ #include < llmq/params.h>
13
14
#include < primitives/transaction.h>
14
- #include < uint256.h>
15
- #include < arith_uint256.h>
16
15
#include < random.h>
17
- #include < streams.h>
18
16
#include < serialize.h>
17
+ #include < streams.h>
19
18
#include < test/util/setup_common.h>
19
+ #include < uint256.h>
20
20
21
21
#include < vector>
22
22
@@ -83,7 +83,7 @@ inline std::vector<bool> CreateBitVector(size_t size, const std::vector<size_t>&
83
83
}
84
84
85
85
// Serialization round-trip test helper
86
- template <typename T>
86
+ template <typename T>
87
87
inline bool TestSerializationRoundtrip (const T& obj)
88
88
{
89
89
CDataStream ss (SER_NETWORK, PROTOCOL_VERSION);
@@ -100,15 +100,9 @@ inline bool TestSerializationRoundtrip(const T& obj)
100
100
}
101
101
102
102
// 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)); }
107
104
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 ); }
112
106
113
107
} // namespace testutils
114
108
} // namespace llmq
0 commit comments