Make the compiler Elder Gods happy

This commit is contained in:
Duke Leto
2020-03-07 17:48:34 -05:00
parent 0f99a6ea3f
commit 61c2090dd6
2 changed files with 3 additions and 3 deletions

View File

@@ -174,7 +174,7 @@ void ThreadNotifyWallets(CBlockIndex *pindexLastTip)
while (pindexLastTip && pindexLastTip != pindexFork) {
// Read block from disk.
CBlock block;
if (!ReadBlockFromDisk(block, pindexLastTip, chainParams.GetConsensus())) {
if (!ReadBlockFromDisk(block, pindexLastTip,1)) {
LogPrintf("*** %s\n", "Failed to read block while notifying wallets of block disconnects");
uiInterface.ThreadSafeMessageBox(
_("Error: A fatal internal error occurred, see debug.log for details"),
@@ -201,7 +201,7 @@ void ThreadNotifyWallets(CBlockIndex *pindexLastTip)
// Read block from disk.
CBlock block;
if (!ReadBlockFromDisk(block, blockData.pindex, chainParams.GetConsensus())) {
if (!ReadBlockFromDisk(block, blockData.pindex, 1)) {
LogPrintf("*** %s\n", "Failed to read block while notifying wallets of block connects");
uiInterface.ThreadSafeMessageBox(
_("Error: A fatal internal error occurred, see debug.log for details"),