diff --git a/src/txdb.cpp b/src/txdb.cpp index abea9a018..18b9d2981 100644 --- a/src/txdb.cpp +++ b/src/txdb.cpp @@ -473,15 +473,17 @@ UniValue CBlockTreeDB::Snapshot(int top) char chType = keyObj.first; CAddressIndexKey indexKey = keyObj.second; - fprintf(stderr, "chType=%d\n", chType); + fprintf(stderr, "chType=%d vs. %d, %d\n", chType,DB_ADDRESSUNSPENTINDEX,DB_ADDRESSINDEX); if (chType == DB_ADDRESSUNSPENTINDEX) { try { - std::vector slValue = std::vector(); + /*std::vector slValue = std::vector(); iter->GetValue(slValue); - CDataStream ssValue(slValue, SER_DISK, CLIENT_VERSION); + CDataStream ssValue(slValue, SER_DISK, CLIENT_VERSION);*/ CAmount nValue; - ssValue >> nValue; + //ssValue >> nValue; + + iter->GetValue(nValue); getAddressFromIndex(indexKey.type, indexKey.hashBytes, address);