Skip to content

Commit 2c1fbaa

Browse files
committed
Drop redundant get_value_or
Suggested bitcoin#14711 (comment)
1 parent 84adb20 commit 2c1fbaa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wallet/wallet.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1722,10 +1722,10 @@ CWallet::ScanResult CWallet::ScanForWalletTransactions(const uint256& start_bloc
17221722
}
17231723
ShowProgress(strprintf("%s " + _("Rescanning..."), GetDisplayName()), 100); // hide progress dialog in GUI
17241724
if (block_height && fAbortRescan) {
1725-
WalletLogPrintf("Rescan aborted at block %d. Progress=%f\n", block_height.get_value_or(0), progress_current);
1725+
WalletLogPrintf("Rescan aborted at block %d. Progress=%f\n", *block_height, progress_current);
17261726
result.status = ScanResult::USER_ABORT;
17271727
} else if (block_height && ShutdownRequested()) {
1728-
WalletLogPrintf("Rescan interrupted by shutdown request at block %d. Progress=%f\n", block_height.get_value_or(0), progress_current);
1728+
WalletLogPrintf("Rescan interrupted by shutdown request at block %d. Progress=%f\n", *block_height, progress_current);
17291729
result.status = ScanResult::USER_ABORT;
17301730
}
17311731
}

0 commit comments

Comments
 (0)