Apply suggestions from code review

Co-Authored-By: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
str4d 2019-12-02 21:10:35 +00:00 committed by GitHub
parent 4f3f8899b3
commit 6d57fcff13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -1714,9 +1714,9 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
}
if (chainActive.Tip() && chainActive.Tip() != pindexRescan)
{
//We can't rescan beyond non-pruned blocks, stop and throw an error
//this might happen if a user uses a old wallet within a pruned node
// or if he ran -disablewallet for a longer time, then decided to re-enable
// We can't rescan beyond non-pruned blocks, so stop and throw an error.
// This might happen if a user uses a old wallet within a pruned node,
// or if they ran -disablewallet for a longer time, then decided to re-enable.
if (fPruneMode)
{
CBlockIndex *block = chainActive.Tip();