@@ -76,7 +76,7 @@ CLevelDBWrapper::CLevelDBWrapper(const boost::filesystem::path& path, size_t nCa
76
76
bool key_exists = Read (OBFUSCATE_KEY_KEY, obfuscate_key);
77
77
78
78
if (!key_exists && obfuscate && IsEmpty ()) {
79
- // Initialize non-degenerate obfuscation if it won't upset
79
+ // Initialize non-degenerate obfuscation if it won't upset
80
80
// existing, non-obfuscated data.
81
81
std::vector<unsigned char > new_key = CreateObfuscateKey ();
82
82
@@ -118,10 +118,10 @@ const std::string CLevelDBWrapper::OBFUSCATE_KEY_KEY("\000obfuscate_key", 14);
118
118
const unsigned int CLevelDBWrapper::OBFUSCATE_KEY_NUM_BYTES = 8 ;
119
119
120
120
/* *
121
- * Returns a string (consisting of 8 random bytes) suitable for use as an
122
- * obfuscating XOR key.
121
+ * Returns a string (consisting of 8 random bytes) suitable for use as an
122
+ * obfuscating XOR key.
123
123
*/
124
- std::vector<unsigned char > CLevelDBWrapper::CreateObfuscateKey () const
124
+ std::vector<unsigned char > CLevelDBWrapper::CreateObfuscateKey () const
125
125
{
126
126
unsigned char buff[OBFUSCATE_KEY_NUM_BYTES];
127
127
GetRandBytes (buff, OBFUSCATE_KEY_NUM_BYTES);
@@ -136,19 +136,17 @@ bool CLevelDBWrapper::IsEmpty()
136
136
return !(it->Valid ());
137
137
}
138
138
139
- const std::vector<unsigned char >& CLevelDBWrapper::GetObfuscateKey () const
140
- {
141
- return obfuscate_key;
139
+ const std::vector<unsigned char >& CLevelDBWrapper::GetObfuscateKey () const
140
+ {
141
+ return obfuscate_key;
142
142
}
143
143
144
144
std::string CLevelDBWrapper::GetObfuscateKeyHex () const
145
- {
146
- return HexStr (obfuscate_key);
145
+ {
146
+ return HexStr (obfuscate_key);
147
147
}
148
148
149
149
CLevelDBIterator::~CLevelDBIterator () { delete piter; }
150
150
bool CLevelDBIterator::Valid () { return piter->Valid (); }
151
151
void CLevelDBIterator::SeekToFirst () { piter->SeekToFirst (); }
152
- void CLevelDBIterator::SeekToLast () { piter->SeekToLast (); }
153
152
void CLevelDBIterator::Next () { piter->Next (); }
154
- void CLevelDBIterator::Prev () { piter->Prev (); }
0 commit comments