From e7a526ef91c7f710b604dcfd8dad726bb3512227 Mon Sep 17 00:00:00 2001 From: shunmugam Date: Fri, 6 Dec 2019 12:23:18 +0530 Subject: [PATCH] Commit for modification in API --- server.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server.ts b/server.ts index 7c4ebd1..9206147 100644 --- a/server.ts +++ b/server.ts @@ -129,7 +129,7 @@ try { { let result; //500 if(option == "circulating") - result= blockDetails.coin_existence; + result= blockDetails.userReward; else if(option == "reward") result= blockDetails.currentReward; else if(option == "getblockcount") @@ -140,8 +140,10 @@ try { result = Number(blockDetails.TotalCuckoo); else if(option == "getdifficulty-progpow") result = Number(blockDetails.TotalDifficultyProgpow); + else if(option == "maxcoins") + result = 21000000; else if(option == "totalcoins") - result = 21000000 * 100000000; + result= blockDetails.coin_existence; else if(option == "average-blocktime") { let data = await averageblockdifficulty();