This commit is contained in:
@@ -453,7 +453,7 @@ UniValue CBlockTreeDB::Snapshot(int top)
|
|||||||
};
|
};
|
||||||
|
|
||||||
int64_t startingHeight = chainActive.Height();
|
int64_t startingHeight = chainActive.Height();
|
||||||
fprintf(stderr, "Starting snapshot at height %lli\n", startingHeight);
|
//fprintf(stderr, "Starting snapshot at height %lli\n", startingHeight);
|
||||||
for (iter->SeekToLast(); iter->Valid(); iter->Prev())
|
for (iter->SeekToLast(); iter->Valid(); iter->Prev())
|
||||||
{
|
{
|
||||||
boost::this_thread::interruption_point();
|
boost::this_thread::interruption_point();
|
||||||
@@ -467,7 +467,7 @@ UniValue CBlockTreeDB::Snapshot(int top)
|
|||||||
ssKey >> chType;
|
ssKey >> chType;
|
||||||
ssKey >> indexKey;
|
ssKey >> indexKey;
|
||||||
|
|
||||||
fprintf(stderr, "chType=%d vs %d\n", chType,DB_ADDRESSUNSPENTINDEX);
|
//fprintf(stderr, "chType=%d\n", chType);
|
||||||
if (chType == DB_ADDRESSUNSPENTINDEX)
|
if (chType == DB_ADDRESSUNSPENTINDEX)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
@@ -512,7 +512,7 @@ UniValue CBlockTreeDB::Snapshot(int top)
|
|||||||
}
|
}
|
||||||
|
|
||||||
UniValue addresses(UniValue::VARR);
|
UniValue addresses(UniValue::VARR);
|
||||||
fprintf(stderr, "total=%f, totalAddresses=%li, utxos=%li, ignored=%li\n", (double) total / COIN, totalAddresses, utxos, ignoredAddresses);
|
//fprintf(stderr, "total=%f, totalAddresses=%li, utxos=%li, ignored=%li\n", (double) total / COIN, totalAddresses, utxos, ignoredAddresses);
|
||||||
|
|
||||||
for (std::pair<std::string, CAmount> element : addressAmounts) {
|
for (std::pair<std::string, CAmount> element : addressAmounts) {
|
||||||
vaddr.push_back( make_pair(element.second, element.first) );
|
vaddr.push_back( make_pair(element.second, element.first) );
|
||||||
|
|||||||
Reference in New Issue
Block a user