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
0 commit comments