@@ -99,7 +99,7 @@ bool CCoinsViewDB::GetStats(CCoinsStats &stats) const {
99
99
only need read operations on it, use a const-cast to get around
100
100
that restriction. */
101
101
boost::scoped_ptr<CLevelDBIterator> pcursor (const_cast <CLevelDBWrapper*>(&db)->NewIterator ());
102
- pcursor->Seek (' c ' );
102
+ pcursor->Seek (DB_COINS );
103
103
104
104
CHashWriter ss (SER_GETHASH, PROTOCOL_VERSION);
105
105
stats.hashBlock = GetBestBlock ();
@@ -109,7 +109,7 @@ bool CCoinsViewDB::GetStats(CCoinsStats &stats) const {
109
109
boost::this_thread::interruption_point ();
110
110
std::pair<char , uint256> key;
111
111
CCoins coins;
112
- if (pcursor->GetKey (key) && key.first == ' c ' ) {
112
+ if (pcursor->GetKey (key) && key.first == DB_COINS ) {
113
113
if (pcursor->GetValue (coins)) {
114
114
stats.nTransactions ++;
115
115
for (unsigned int i=0 ; i<coins.vout .size (); i++) {
@@ -179,13 +179,13 @@ bool CBlockTreeDB::LoadBlockIndexGuts()
179
179
{
180
180
boost::scoped_ptr<CLevelDBIterator> pcursor (NewIterator ());
181
181
182
- pcursor->Seek (make_pair (' b ' , uint256 ()));
182
+ pcursor->Seek (make_pair (DB_BLOCK_INDEX , uint256 ()));
183
183
184
184
// Load mapBlockIndex
185
185
while (pcursor->Valid ()) {
186
186
boost::this_thread::interruption_point ();
187
187
std::pair<char , uint256> key;
188
- if (pcursor->GetKey (key) && key.first == ' b ' ) {
188
+ if (pcursor->GetKey (key) && key.first == DB_BLOCK_INDEX ) {
189
189
CDiskBlockIndex diskindex;
190
190
if (pcursor->GetValue (diskindex)) {
191
191
// Construct block index object
0 commit comments