From 5f4487b8d0b2dbb2945a91733b1f177356c580f4 Mon Sep 17 00:00:00 2001 From: levonpetrosyan93 Date: Mon, 25 Sep 2023 12:04:53 +0400 Subject: [PATCH] Fixed crash when -mobile passed --- src/spark/state.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/spark/state.cpp b/src/spark/state.cpp index 9cce5ff48c..af2d95cf3b 100644 --- a/src/spark/state.cpp +++ b/src/spark/state.cpp @@ -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; } } }