Fixed address, unspent, and timestamp indexing

This commit is contained in:
miketout
2018-11-21 23:33:51 -08:00
5 changed files with 235 additions and 278 deletions

View File

@@ -123,6 +123,16 @@ public:
return true;
}
bool GetKeyDataStream(CDataStream &ssKey) {
leveldb::Slice slKey = piter->key();
try {
ssKey = CDataStream(slKey.data(), slKey.data() + slKey.size(), SER_DISK, CLIENT_VERSION);
} catch(std::exception &e) {
return false;
}
return true;
}
unsigned int GetKeySize() {
return piter->key().size();
}