Browse Source

Test

pull/4/head
jl777 6 years ago
parent
commit
e49f46e294
  1. 10
      src/txdb.cpp

10
src/txdb.cpp

@ -473,15 +473,17 @@ UniValue CBlockTreeDB::Snapshot(int top)
char chType = keyObj.first; char chType = keyObj.first;
CAddressIndexKey indexKey = keyObj.second; 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) if (chType == DB_ADDRESSUNSPENTINDEX)
{ {
try { try {
std::vector<unsigned char> slValue = std::vector<unsigned char>(); /*std::vector<unsigned char> slValue = std::vector<unsigned char>();
iter->GetValue(slValue); iter->GetValue(slValue);
CDataStream ssValue(slValue, SER_DISK, CLIENT_VERSION); CDataStream ssValue(slValue, SER_DISK, CLIENT_VERSION);*/
CAmount nValue; CAmount nValue;
ssValue >> nValue; //ssValue >> nValue;
iter->GetValue(nValue);
getAddressFromIndex(indexKey.type, indexKey.hashBytes, address); getAddressFromIndex(indexKey.type, indexKey.hashBytes, address);

Loading…
Cancel
Save