Skip to content

Commit

Permalink
Fix lastblock_lastReward
Browse files Browse the repository at this point in the history
  • Loading branch information
Mas7erMind committed Aug 24, 2020
1 parent 7891685 commit 270a5e1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ protected void onBackgroundFetchData() {
mBlockData.network.lastBlockHeight = joStatsLastBlock.optString("height");
mBlockData.network.difficulty = getReadableHashRateString(joStatsNetwork.optLong("difficulty"));
mBlockData.network.lastBlockTime = pTime.format(new Date(joStatsLastBlock.optLong("timestamp") * 1000));
mBlockData.network.lastRewardAmount = parseCurrency(joStatsPool.optString("lastblock_lastReward", "0"), mBlockData.coin.units, mBlockData.coin.denominationUnit, mBlockData.coin.symbol);
mBlockData.network.lastRewardAmount = parseCurrency(joStatsPoolStats.optString("lastblock_lastReward", "0"), mBlockData.coin.units, mBlockData.coin.denominationUnit, mBlockData.coin.symbol);
} catch (JSONException e) {
Log.i(LOG_TAG, "NETWORK\n" + e.toString());
e.printStackTrace();
Expand Down

0 comments on commit 270a5e1

Please sign in to comment.