Skip to content

Commit b2522a2

Browse files
committed
chore: make clang format happy
1 parent 09490b7 commit b2522a2

File tree

3 files changed

+8
-12
lines changed

3 files changed

+8
-12
lines changed

src/evo/assetlocktx.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,10 @@
2121

2222
using node::BlockManager;
2323

24-
namespace llmq
25-
{
24+
namespace llmq {
2625
// forward declaration to avoid circular dependency
2726
uint256 BuildSignHash(Consensus::LLMQType llmqType, const uint256& quorumHash, const uint256& id, const uint256& msgHash);
28-
} // llmq
27+
} // namespace llmq
2928

3029
/**
3130
* Common code for Asset Lock and Asset Unlock

src/evo/specialtx_filter.cpp

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,16 @@
3333
* - AssetLockTx: Credit output scripts (platform credits)
3434
*/
3535
// Helper function to add a script to the filter if it's not empty
36-
static void AddScriptElement(const CScript& script,
37-
const std::function<void(Span<const unsigned char>)>& addElement)
36+
static void AddScriptElement(const CScript& script, const std::function<void(Span<const unsigned char>)>& addElement)
3837
{
3938
if (!script.empty()) {
4039
addElement(MakeUCharSpan(script));
4140
}
4241
}
4342

4443
// Helper function to add a hash/key to the filter
45-
template<typename T>
46-
static void AddHashElement(const T& hash,
47-
const std::function<void(Span<const unsigned char>)>& addElement)
44+
template <typename T>
45+
static void AddHashElement(const T& hash, const std::function<void(Span<const unsigned char>)>& addElement)
4846
{
4947
addElement(MakeUCharSpan(hash));
5048
}
@@ -54,14 +52,13 @@ static void AddHashElement(const T& hash,
5452
// src/common/bloom.cpp. If you add or remove fields for a special
5553
// transaction type here, update the bloom filter routine accordingly
5654
// (and vice versa) to avoid compact-filter vs bloom-filter divergence.
57-
void ExtractSpecialTxFilterElements(const CTransaction& tx,
58-
const std::function<void(Span<const unsigned char>)>& addElement)
55+
void ExtractSpecialTxFilterElements(const CTransaction& tx, const std::function<void(Span<const unsigned char>)>& addElement)
5956
{
6057
if (!tx.HasExtraPayloadField()) {
6158
return; // not a special transaction
6259
}
6360

64-
switch(tx.nType) {
61+
switch (tx.nType) {
6562
case TRANSACTION_PROVIDER_REGISTER: {
6663
if (const auto opt_proTx = GetTxPayload<CProRegTx>(tx)) {
6764
// Add collateral outpoint

src/evo/specialtx_filter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ class CTransaction;
2121
* allocations.
2222
*/
2323
void ExtractSpecialTxFilterElements(const CTransaction& tx,
24-
const std::function<void(Span<const unsigned char>)>& addElement);
24+
const std::function<void(Span<const unsigned char>)>& addElement);
2525

2626
#endif // BITCOIN_EVO_SPECIALTX_FILTER_H

0 commit comments

Comments
 (0)