Skip to content

Commit

Permalink
Fixed crash when -mobile passed
Browse files Browse the repository at this point in the history
  • Loading branch information
levonpetrosyan93 committed Sep 25, 2023
1 parent d563a22 commit 5f4487b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/spark/state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1005,7 +1005,9 @@ void CSparkState::AddMintsToStateAndBlockIndex(
LogPrintf("AddMintsToStateAndBlockIndex: Spark mint added id=%d\n", latestCoinId);
index->sparkMintedCoins[latestCoinId].push_back(mint);
if (GetBoolArg("-mobile", false)) {
index->sparkTxHash[mint.S] = GetTxHashFromCoin(mint);
COutPoint outPoint;
GetOutPointFromBlock(outPoint, mint, *pblock);
index->sparkTxHash[mint.S] = outPoint.hash;
}
}
}
Expand Down

0 comments on commit 5f4487b

Please sign in to comment.