/home/zip/work/bitcoin/src/dbwrapper.h
Line | Count | Source |
1 | | // Copyright (c) 2012-present The Bitcoin Core developers |
2 | | // Distributed under the MIT software license, see the accompanying |
3 | | // file COPYING or http://www.opensource.org/licenses/mit-license.php. |
4 | | |
5 | | #ifndef BITCOIN_DBWRAPPER_H |
6 | | #define BITCOIN_DBWRAPPER_H |
7 | | |
8 | | #include <attributes.h> |
9 | | #include <serialize.h> |
10 | | #include <span.h> |
11 | | #include <streams.h> |
12 | | #include <util/byte_units.h> |
13 | | #include <util/check.h> |
14 | | #include <util/fs.h> |
15 | | |
16 | | #include <cstddef> |
17 | | #include <exception> |
18 | | #include <memory> |
19 | | #include <optional> |
20 | | #include <stdexcept> |
21 | | #include <string> |
22 | | |
23 | | namespace leveldb { |
24 | | class Env; |
25 | | } // namespace leveldb |
26 | | |
27 | | static const size_t DBWRAPPER_PREALLOC_KEY_SIZE = 64; |
28 | | static const size_t DBWRAPPER_PREALLOC_VALUE_SIZE = 1024; |
29 | | static const size_t DBWRAPPER_MAX_FILE_SIZE{32_MiB}; |
30 | | |
31 | | //! User-controlled performance and debug options. |
32 | | struct DBOptions { |
33 | | //! Compact database on startup. |
34 | | bool force_compact = false; |
35 | | }; |
36 | | |
37 | | //! Application-specific storage settings. |
38 | | struct DBParams { |
39 | | //! Location in the filesystem where leveldb data will be stored. |
40 | | fs::path path; |
41 | | //! Configures various leveldb cache settings. |
42 | | size_t cache_bytes; |
43 | | //! If true, use leveldb's memory environment. |
44 | | bool memory_only = false; |
45 | | //! If true, remove all existing data. |
46 | | bool wipe_data = false; |
47 | | //! If true, store data obfuscated via simple XOR. If false, XOR with a |
48 | | //! zero'd byte array. |
49 | | bool obfuscate = false; |
50 | | //! Passed-through options. |
51 | | DBOptions options{}; |
52 | | //! If non-null, use this as the leveldb::Env instead of the default. |
53 | | //! Caller retains ownership. |
54 | | leveldb::Env* testing_env = nullptr; |
55 | | //! Maximum LevelDB SST file size. Larger values reduce the frequency |
56 | | //! of compactions but increase their duration. |
57 | | size_t max_file_size = DBWRAPPER_MAX_FILE_SIZE; |
58 | | }; |
59 | | |
60 | | class dbwrapper_error : public std::runtime_error |
61 | | { |
62 | | public: |
63 | 0 | explicit dbwrapper_error(const std::string& msg) : std::runtime_error(msg) {} |
64 | | }; |
65 | | |
66 | | class CDBWrapper; |
67 | | |
68 | | /** These should be considered an implementation detail of the specific database. |
69 | | */ |
70 | | namespace dbwrapper_private { |
71 | | |
72 | | /** Work around circular dependency, as well as for testing in dbwrapper_tests. |
73 | | * Database obfuscation should be considered an implementation detail of the |
74 | | * specific database. |
75 | | */ |
76 | | const Obfuscation& GetObfuscation(const CDBWrapper&); |
77 | | }; // namespace dbwrapper_private |
78 | | |
79 | | bool DestroyDB(const std::string& path_str); |
80 | | |
81 | | /** Batch of changes queued to be written to a CDBWrapper */ |
82 | | class CDBBatch |
83 | | { |
84 | | friend class CDBWrapper; |
85 | | |
86 | | private: |
87 | | const CDBWrapper &parent; |
88 | | |
89 | | struct WriteBatchImpl; |
90 | | const std::unique_ptr<WriteBatchImpl> m_impl_batch; |
91 | | |
92 | | DataStream m_key_scratch{}; |
93 | | DataStream m_value_scratch{}; |
94 | | |
95 | | void WriteImpl(std::span<const std::byte> key, DataStream& value); |
96 | | void EraseImpl(std::span<const std::byte> key); |
97 | | |
98 | | public: |
99 | | /** |
100 | | * @param[in] _parent CDBWrapper that this batch is to be submitted to |
101 | | */ |
102 | | explicit CDBBatch(const CDBWrapper& _parent); |
103 | | ~CDBBatch(); |
104 | | void Clear(); |
105 | | |
106 | | template <typename K, typename V> |
107 | | void Write(const K& key, const V& value) |
108 | 0 | { |
109 | 0 | ScopedDataStreamUsage scoped_key{m_key_scratch}, scoped_value{m_value_scratch}; |
110 | 0 | m_key_scratch << key; |
111 | 0 | m_value_scratch << value; |
112 | 0 | WriteImpl(m_key_scratch, m_value_scratch); |
113 | 0 | } Unexecuted instantiation: void CDBBatch::Write<unsigned short, std::vector<unsigned char, std::allocator<unsigned char> > >(unsigned short const&, std::vector<unsigned char, std::allocator<unsigned char> > const&) Unexecuted instantiation: void CDBBatch::Write<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, Obfuscation>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, Obfuscation const&) Unexecuted instantiation: void CDBBatch::Write<unsigned char, unsigned char>(unsigned char const&, unsigned char const&) Unexecuted instantiation: void CDBBatch::Write<std::pair<unsigned char, int>, kernel::CBlockFileInfo>(std::pair<unsigned char, int> const&, kernel::CBlockFileInfo const&) Unexecuted instantiation: void CDBBatch::Write<unsigned char, int>(unsigned char const&, int const&) Unexecuted instantiation: void CDBBatch::Write<std::pair<unsigned char, uint256>, CDiskBlockIndex>(std::pair<unsigned char, uint256> const&, CDiskBlockIndex const&) Unexecuted instantiation: void CDBBatch::Write<std::pair<unsigned char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, unsigned char>(std::pair<unsigned char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > const&, unsigned char const&) Unexecuted instantiation: void CDBBatch::Write<unsigned char, std::vector<uint256, std::allocator<uint256> > >(unsigned char const&, std::vector<uint256, std::allocator<uint256> > const&) Unexecuted instantiation: txdb.cpp:void CDBBatch::Write<(anonymous namespace)::CoinEntry, Coin>((anonymous namespace)::CoinEntry const&, Coin const&) Unexecuted instantiation: void CDBBatch::Write<unsigned char, uint256>(unsigned char const&, uint256 const&) Unexecuted instantiation: void CDBBatch::Write<unsigned char, CBlockLocator>(unsigned char const&, CBlockLocator const&) Unexecuted instantiation: void CDBBatch::Write<unsigned char, FlatFilePos>(unsigned char const&, FlatFilePos const&) Unexecuted instantiation: blockfilterindex.cpp:void CDBBatch::Write<index_util::DBHeightKey, std::pair<uint256, (anonymous namespace)::DBVal> >(index_util::DBHeightKey const&, std::pair<uint256, (anonymous namespace)::DBVal> const&) Unexecuted instantiation: blockfilterindex.cpp:void CDBBatch::Write<index_util::DBHashKey, (anonymous namespace)::DBVal>(index_util::DBHashKey const&, (anonymous namespace)::DBVal const&) Unexecuted instantiation: coinstatsindex.cpp:void CDBBatch::Write<index_util::DBHeightKey, std::pair<uint256, (anonymous namespace)::DBVal> >(index_util::DBHeightKey const&, std::pair<uint256, (anonymous namespace)::DBVal> const&) Unexecuted instantiation: coinstatsindex.cpp:void CDBBatch::Write<index_util::DBHashKey, (anonymous namespace)::DBVal>(index_util::DBHashKey const&, (anonymous namespace)::DBVal const&) Unexecuted instantiation: void CDBBatch::Write<unsigned char, MuHash3072>(unsigned char const&, MuHash3072 const&) Unexecuted instantiation: void CDBBatch::Write<std::pair<unsigned char, uint256>, CDiskTxPos>(std::pair<unsigned char, uint256> const&, CDiskTxPos const&) Unexecuted instantiation: void CDBBatch::Write<char [12], std::pair<unsigned long, unsigned long> >(char const (&) [12], std::pair<unsigned long, unsigned long> const&) Unexecuted instantiation: void CDBBatch::Write<DBKey, char [1]>(DBKey const&, char const (&) [1]) |
114 | | |
115 | | template <typename K> |
116 | | void Erase(const K& key) |
117 | 0 | { |
118 | 0 | ScopedDataStreamUsage scoped_key{m_key_scratch}; |
119 | 0 | m_key_scratch << key; |
120 | 0 | EraseImpl(m_key_scratch); |
121 | 0 | } Unexecuted instantiation: void CDBBatch::Erase<unsigned short>(unsigned short const&) Unexecuted instantiation: void CDBBatch::Erase<unsigned char>(unsigned char const&) Unexecuted instantiation: txdb.cpp:void CDBBatch::Erase<(anonymous namespace)::CoinEntry>((anonymous namespace)::CoinEntry const&) Unexecuted instantiation: void CDBBatch::Erase<DBKey>(DBKey const&) |
122 | | |
123 | | size_t ApproximateSize() const; |
124 | | }; |
125 | | |
126 | | class CDBIterator |
127 | | { |
128 | | public: |
129 | | struct IteratorImpl; |
130 | | |
131 | | private: |
132 | | const CDBWrapper &parent; |
133 | | const std::unique_ptr<IteratorImpl> m_impl_iter; |
134 | | DataStream m_scratch{}; |
135 | | |
136 | | void SeekImpl(std::span<const std::byte> key); |
137 | | std::span<const std::byte> GetKeyImpl() const; |
138 | | std::span<const std::byte> GetValueImpl() const; |
139 | | |
140 | | public: |
141 | | |
142 | | /** |
143 | | * @param[in] _parent Parent CDBWrapper instance. |
144 | | * @param[in] _piter The original leveldb iterator. |
145 | | */ |
146 | | CDBIterator(const CDBWrapper& _parent, std::unique_ptr<IteratorImpl> _piter); |
147 | | ~CDBIterator(); |
148 | | |
149 | | bool Valid() const; |
150 | | |
151 | | void SeekToFirst(); |
152 | | |
153 | 0 | template<typename K> void Seek(const K& key) { |
154 | 0 | ScopedDataStreamUsage scoped_scratch{m_scratch}; |
155 | 0 | m_scratch << key; |
156 | 0 | SeekImpl(m_scratch); |
157 | 0 | } Unexecuted instantiation: void CDBIterator::Seek<unsigned short>(unsigned short const&) Unexecuted instantiation: void CDBIterator::Seek<std::pair<unsigned char, uint256> >(std::pair<unsigned char, uint256> const&) Unexecuted instantiation: void CDBIterator::Seek<unsigned char>(unsigned char const&) Unexecuted instantiation: void CDBIterator::Seek<index_util::DBHeightKey>(index_util::DBHeightKey const&) Unexecuted instantiation: void CDBIterator::Seek<std::pair<unsigned char, unsigned long> >(std::pair<unsigned char, unsigned long> const&) |
158 | | |
159 | | void Next(); |
160 | | |
161 | 0 | template<typename K> bool GetKey(K& key) { |
162 | 0 | try { |
163 | 0 | SpanReader ssKey{GetKeyImpl()}; |
164 | 0 | ssKey >> key; |
165 | 0 | } catch (const std::exception&) { |
166 | 0 | return false; |
167 | 0 | } |
168 | 0 | return true; |
169 | 0 | } Unexecuted instantiation: bool CDBIterator::GetKey<unsigned short>(unsigned short&) Unexecuted instantiation: bool CDBIterator::GetKey<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&) Unexecuted instantiation: bool CDBIterator::GetKey<std::pair<unsigned char, uint256> >(std::pair<unsigned char, uint256>&) Unexecuted instantiation: txdb.cpp:bool CDBIterator::GetKey<(anonymous namespace)::CoinEntry>((anonymous namespace)::CoinEntry&) Unexecuted instantiation: bool CDBIterator::GetKey<index_util::DBHeightKey>(index_util::DBHeightKey&) Unexecuted instantiation: bool CDBIterator::GetKey<DBKey>(DBKey&) |
170 | | |
171 | 0 | template<typename V> bool GetValue(V& value) { |
172 | 0 | try { |
173 | 0 | ScopedDataStreamUsage scoped_scratch{m_scratch}; |
174 | 0 | m_scratch.write(GetValueImpl()); |
175 | 0 | dbwrapper_private::GetObfuscation(parent)(m_scratch); |
176 | 0 | m_scratch >> value; |
177 | 0 | } catch (const std::exception&) { |
178 | 0 | return false; |
179 | 0 | } |
180 | 0 | return true; |
181 | 0 | } Unexecuted instantiation: bool CDBIterator::GetValue<std::vector<unsigned char, std::allocator<unsigned char> > >(std::vector<unsigned char, std::allocator<unsigned char> >&) Unexecuted instantiation: bool CDBIterator::GetValue<CDiskBlockIndex>(CDiskBlockIndex&) Unexecuted instantiation: bool CDBIterator::GetValue<Coin>(Coin&) Unexecuted instantiation: blockfilterindex.cpp:bool CDBIterator::GetValue<std::pair<uint256, (anonymous namespace)::DBVal> >(std::pair<uint256, (anonymous namespace)::DBVal>&) Unexecuted instantiation: coinstatsindex.cpp:bool CDBIterator::GetValue<std::pair<uint256, (anonymous namespace)::DBVal> >(std::pair<uint256, (anonymous namespace)::DBVal>&) |
182 | | }; |
183 | | |
184 | | struct LevelDBContext; |
185 | | |
186 | | class CDBWrapper |
187 | | { |
188 | | friend const Obfuscation& dbwrapper_private::GetObfuscation(const CDBWrapper&); |
189 | | private: |
190 | | //! holds all leveldb-specific fields of this class |
191 | | std::unique_ptr<LevelDBContext> m_db_context; |
192 | | |
193 | | //! the name of this database |
194 | | std::string m_name; |
195 | | |
196 | | //! optional XOR-obfuscation of the database |
197 | | Obfuscation m_obfuscation; |
198 | | |
199 | | //! obfuscation key storage key, null-prefixed to avoid collisions |
200 | | inline static const std::string OBFUSCATION_KEY{"\000obfuscate_key", 14}; // explicit size to avoid truncation at leading \0 |
201 | | |
202 | | std::optional<std::string> ReadImpl(std::span<const std::byte> key) const; |
203 | | bool ExistsImpl(std::span<const std::byte> key) const; |
204 | | size_t EstimateSizeImpl(std::span<const std::byte> key1, std::span<const std::byte> key2) const; |
205 | 0 | auto& DBContext() const LIFETIMEBOUND { return *Assert(m_db_context); }Line | Count | Source | 116 | 0 | #define Assert(val) inline_assertion_check<true>(val, std::source_location::current(), #val) |
|
206 | | |
207 | | public: |
208 | | CDBWrapper(const DBParams& params); |
209 | | ~CDBWrapper(); |
210 | | |
211 | | CDBWrapper(const CDBWrapper&) = delete; |
212 | | CDBWrapper& operator=(const CDBWrapper&) = delete; |
213 | | |
214 | | template <typename K, typename V> |
215 | | bool Read(const K& key, V& value) const |
216 | 0 | { |
217 | 0 | DataStream ssKey{}; |
218 | 0 | ssKey.reserve(DBWRAPPER_PREALLOC_KEY_SIZE); |
219 | 0 | ssKey << key; |
220 | 0 | std::optional<std::string> strValue{ReadImpl(ssKey)}; |
221 | 0 | if (!strValue) { |
222 | 0 | return false; |
223 | 0 | } |
224 | 0 | try { |
225 | 0 | std::span ssValue{MakeWritableByteSpan(*strValue)}; |
226 | 0 | m_obfuscation(ssValue); |
227 | 0 | SpanReader{ssValue} >> value; |
228 | 0 | } catch (const std::exception&) { |
229 | 0 | return false; |
230 | 0 | } |
231 | 0 | return true; |
232 | 0 | } Unexecuted instantiation: bool CDBWrapper::Read<unsigned short, std::vector<unsigned char, std::allocator<unsigned char> > >(unsigned short const&, std::vector<unsigned char, std::allocator<unsigned char> >&) const Unexecuted instantiation: dbwrapper.cpp:bool CDBWrapper::Read<unsigned short, (anonymous namespace)::FailUnserialize>(unsigned short const&, (anonymous namespace)::FailUnserialize&) const Unexecuted instantiation: bool CDBWrapper::Read<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, Obfuscation>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, Obfuscation&) const Unexecuted instantiation: bool CDBWrapper::Read<std::pair<unsigned char, int>, kernel::CBlockFileInfo>(std::pair<unsigned char, int> const&, kernel::CBlockFileInfo&) const Unexecuted instantiation: bool CDBWrapper::Read<unsigned char, int>(unsigned char const&, int&) const Unexecuted instantiation: bool CDBWrapper::Read<std::pair<unsigned char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, unsigned char>(std::pair<unsigned char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > const&, unsigned char&) const Unexecuted instantiation: txdb.cpp:bool CDBWrapper::Read<(anonymous namespace)::CoinEntry, Coin>((anonymous namespace)::CoinEntry const&, Coin&) const Unexecuted instantiation: bool CDBWrapper::Read<unsigned char, uint256>(unsigned char const&, uint256&) const Unexecuted instantiation: bool CDBWrapper::Read<unsigned char, std::vector<uint256, std::allocator<uint256> > >(unsigned char const&, std::vector<uint256, std::allocator<uint256> >&) const Unexecuted instantiation: bool CDBWrapper::Read<unsigned char, CBlockLocator>(unsigned char const&, CBlockLocator&) const Unexecuted instantiation: blockfilterindex.cpp:bool CDBWrapper::Read<index_util::DBHashKey, (anonymous namespace)::DBVal>(index_util::DBHashKey const&, (anonymous namespace)::DBVal&) const Unexecuted instantiation: bool CDBWrapper::Read<unsigned char, FlatFilePos>(unsigned char const&, FlatFilePos&) const Unexecuted instantiation: blockfilterindex.cpp:bool CDBWrapper::Read<index_util::DBHeightKey, std::pair<uint256, (anonymous namespace)::DBVal> >(index_util::DBHeightKey const&, std::pair<uint256, (anonymous namespace)::DBVal>&) const Unexecuted instantiation: coinstatsindex.cpp:bool CDBWrapper::Read<index_util::DBHashKey, (anonymous namespace)::DBVal>(index_util::DBHashKey const&, (anonymous namespace)::DBVal&) const Unexecuted instantiation: bool CDBWrapper::Read<unsigned char, MuHash3072>(unsigned char const&, MuHash3072&) const Unexecuted instantiation: coinstatsindex.cpp:bool CDBWrapper::Read<index_util::DBHeightKey, std::pair<uint256, (anonymous namespace)::DBVal> >(index_util::DBHeightKey const&, std::pair<uint256, (anonymous namespace)::DBVal>&) const Unexecuted instantiation: coinstatsindex.cpp:bool CDBWrapper::Read<index_util::DBHashKey, std::pair<uint256, (anonymous namespace)::DBVal> >(index_util::DBHashKey const&, std::pair<uint256, (anonymous namespace)::DBVal>&) const Unexecuted instantiation: bool CDBWrapper::Read<std::pair<unsigned char, uint256>, CDiskTxPos>(std::pair<unsigned char, uint256> const&, CDiskTxPos&) const Unexecuted instantiation: bool CDBWrapper::Read<char [12], std::pair<unsigned long, unsigned long> >(char const (&) [12], std::pair<unsigned long, unsigned long>&) const |
233 | | |
234 | | template <typename K, typename V> |
235 | | void Write(const K& key, const V& value, bool fSync = false) |
236 | 0 | { |
237 | 0 | CDBBatch batch(*this); |
238 | 0 | batch.Write(key, value); |
239 | 0 | WriteBatch(batch, fSync); |
240 | 0 | } Unexecuted instantiation: void CDBWrapper::Write<unsigned short, std::vector<unsigned char, std::allocator<unsigned char> > >(unsigned short const&, std::vector<unsigned char, std::allocator<unsigned char> > const&, bool) Unexecuted instantiation: void CDBWrapper::Write<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, Obfuscation>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, Obfuscation const&, bool) Unexecuted instantiation: void CDBWrapper::Write<unsigned char, unsigned char>(unsigned char const&, unsigned char const&, bool) Unexecuted instantiation: void CDBWrapper::Write<std::pair<unsigned char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, unsigned char>(std::pair<unsigned char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > const&, unsigned char const&, bool) Unexecuted instantiation: blockfilterindex.cpp:void CDBWrapper::Write<index_util::DBHeightKey, std::pair<uint256, (anonymous namespace)::DBVal> >(index_util::DBHeightKey const&, std::pair<uint256, (anonymous namespace)::DBVal> const&, bool) Unexecuted instantiation: coinstatsindex.cpp:void CDBWrapper::Write<index_util::DBHeightKey, std::pair<uint256, (anonymous namespace)::DBVal> >(index_util::DBHeightKey const&, std::pair<uint256, (anonymous namespace)::DBVal> const&, bool) Unexecuted instantiation: void CDBWrapper::Write<char [12], std::pair<unsigned long, unsigned long> >(char const (&) [12], std::pair<unsigned long, unsigned long> const&, bool) |
241 | | |
242 | | template <typename K> |
243 | | bool Exists(const K& key) const |
244 | 0 | { |
245 | 0 | DataStream ssKey{}; |
246 | 0 | ssKey.reserve(DBWRAPPER_PREALLOC_KEY_SIZE); |
247 | 0 | ssKey << key; |
248 | 0 | return ExistsImpl(ssKey); |
249 | 0 | } Unexecuted instantiation: bool CDBWrapper::Exists<unsigned short>(unsigned short const&) const Unexecuted instantiation: bool CDBWrapper::Exists<unsigned char>(unsigned char const&) const Unexecuted instantiation: txdb.cpp:bool CDBWrapper::Exists<(anonymous namespace)::CoinEntry>((anonymous namespace)::CoinEntry const&) const |
250 | | |
251 | | template <typename K> |
252 | | void Erase(const K& key, bool fSync = false) |
253 | 0 | { |
254 | 0 | CDBBatch batch(*this); |
255 | 0 | batch.Erase(key); |
256 | 0 | WriteBatch(batch, fSync); |
257 | 0 | } Unexecuted instantiation: void CDBWrapper::Erase<unsigned short>(unsigned short const&, bool) Unexecuted instantiation: void CDBWrapper::Erase<unsigned char>(unsigned char const&, bool) |
258 | | |
259 | | void WriteBatch(CDBBatch& batch, bool fSync = false); |
260 | | |
261 | | // Get an estimate of LevelDB memory usage (in bytes). |
262 | | size_t DynamicMemoryUsage() const; |
263 | | |
264 | | CDBIterator* NewIterator(); |
265 | | |
266 | | /** |
267 | | * Return true if the database managed by this class contains no entries. |
268 | | */ |
269 | | bool IsEmpty(); |
270 | | |
271 | | template<typename K> |
272 | | size_t EstimateSize(const K& key_begin, const K& key_end) const |
273 | 0 | { |
274 | 0 | DataStream ssKey1{}, ssKey2{}; |
275 | 0 | ssKey1.reserve(DBWRAPPER_PREALLOC_KEY_SIZE); |
276 | 0 | ssKey2.reserve(DBWRAPPER_PREALLOC_KEY_SIZE); |
277 | 0 | ssKey1 << key_begin; |
278 | 0 | ssKey2 << key_end; |
279 | 0 | return EstimateSizeImpl(ssKey1, ssKey2); |
280 | 0 | } Unexecuted instantiation: unsigned long CDBWrapper::EstimateSize<unsigned short>(unsigned short const&, unsigned short const&) const Unexecuted instantiation: unsigned long CDBWrapper::EstimateSize<unsigned char>(unsigned char const&, unsigned char const&) const |
281 | | }; |
282 | | |
283 | | #endif // BITCOIN_DBWRAPPER_H |