File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 11
11
#include < unordered_set>
12
12
#include < vector>
13
13
14
+ #include < attributes.h>
14
15
#include < primitives/block.h>
15
16
#include < serialize.h>
16
17
#include < uint256.h>
@@ -65,8 +66,8 @@ class GCSFilter
65
66
GCSFilter (const Params& params, const ElementSet& elements);
66
67
67
68
uint32_t GetN () const { return m_N; }
68
- const Params& GetParams () const { return m_params; }
69
- const std::vector<unsigned char >& GetEncoded () const { return m_encoded; }
69
+ const Params& GetParams () const LIFETIMEBOUND { return m_params; }
70
+ const std::vector<unsigned char >& GetEncoded () const LIFETIMEBOUND { return m_encoded; }
70
71
71
72
/* *
72
73
* Checks if the element may be in the set. False positives are possible
@@ -128,10 +129,10 @@ class BlockFilter
128
129
BlockFilter (BlockFilterType filter_type, const CBlock& block, const CBlockUndo& block_undo);
129
130
130
131
BlockFilterType GetFilterType () const { return m_filter_type; }
131
- const uint256& GetBlockHash () const { return m_block_hash; }
132
- const GCSFilter& GetFilter () const { return m_filter; }
132
+ const uint256& GetBlockHash () const LIFETIMEBOUND { return m_block_hash; }
133
+ const GCSFilter& GetFilter () const LIFETIMEBOUND { return m_filter; }
133
134
134
- const std::vector<unsigned char >& GetEncodedFilter () const
135
+ const std::vector<unsigned char >& GetEncodedFilter () const LIFETIMEBOUND
135
136
{
136
137
return m_filter.GetEncoded ();
137
138
}
Original file line number Diff line number Diff line change 5
5
#ifndef BITCOIN_INDEX_BLOCKFILTERINDEX_H
6
6
#define BITCOIN_INDEX_BLOCKFILTERINDEX_H
7
7
8
+ #include < attributes.h>
8
9
#include < blockfilter.h>
9
10
#include < chain.h>
10
11
#include < flatfile.h>
@@ -49,9 +50,9 @@ class BlockFilterIndex final : public BaseIndex
49
50
50
51
bool CustomRewind (const interfaces::BlockKey& current_tip, const interfaces::BlockKey& new_tip) override ;
51
52
52
- BaseIndex::DB& GetDB () const override { return *m_db; }
53
+ BaseIndex::DB& GetDB () const LIFETIMEBOUND override { return *m_db; }
53
54
54
- const char * GetName () const override { return m_name.c_str (); }
55
+ const char * GetName () const LIFETIMEBOUND override { return m_name.c_str (); }
55
56
56
57
public:
57
58
/* * Constructs the index, which becomes available to be queried. */
You can’t perform that action at this time.
0 commit comments