blockchain_blackball: make it clear secondary passes are not incremental

yet
This commit is contained in:
moneromooo-monero 2018-08-14 15:06:16 +00:00
parent eb8a51be68
commit 639a3c019c
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3
1 changed files with 12 additions and 1 deletions

View File

@ -1061,7 +1061,7 @@ int main(int argc, char* argv[])
if (stop_requested)
{
MINFO("Stopping scan, secondary passes will still happen...");
MINFO("Stopping scan...");
return false;
}
return true;
@ -1074,6 +1074,10 @@ int main(int argc, char* argv[])
}
std::vector<output_data> work_spent;
if (stop_requested)
goto skip_secondary_passes;
if (get_num_spent_outputs() > start_blackballed_outputs)
{
MDB_txn *txn;
@ -1126,6 +1130,12 @@ int main(int argc, char* argv[])
inc_stat(txn, od.amount ? "pre-rct-chain-reaction" : "rct-chain-reaction");
}
}
if (stop_requested)
{
MINFO("Stopping secondary passes. Secondary passes are not incremental, they will re-run fully.");
return false;
}
}
if (!blackballs.empty())
{
@ -1136,6 +1146,7 @@ int main(int argc, char* argv[])
CHECK_AND_ASSERT_THROW_MES(!dbr, "Failed to commit txn creating/opening database: " + std::string(mdb_strerror(dbr)));
}
skip_secondary_passes:
uint64_t diff = get_num_spent_outputs() - start_blackballed_outputs;
LOG_PRINT_L0(std::to_string(diff) << " new outputs blackballed, " << get_num_spent_outputs() << " total outputs blackballed");