Test
This commit is contained in:
10
src/txdb.cpp
10
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<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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user