This commit is contained in:
jl777
2018-11-25 07:53:30 -11:00
parent 0893e62182
commit e49f46e294

View File

@@ -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<unsigned char> slValue = std::vector<unsigned char>();
/*std::vector<unsigned char> slValue = std::vector<unsigned char>();
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);