From 2be889d036c490021b496c28f82245406b80c5a7 Mon Sep 17 00:00:00 2001 From: shunmugam Date: Mon, 13 Jan 2020 13:00:24 +0530 Subject: [PATCH] Commit for circulating supply API --- server.ts | 2 +- server/utils/common.ts | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/server.ts b/server.ts index ca28fe8..75de7e1 100644 --- a/server.ts +++ b/server.ts @@ -129,7 +129,7 @@ try { { let result; //500 if(option == "circulating") - result= blockDetails.coin_existence; + result= blockDetails.coin_existence - blockDetails.totalFoundationReward; else if(option == "reward") result= blockDetails.currentReward; else if(option == "getblockcount") diff --git a/server/utils/common.ts b/server/utils/common.ts index 3a04213..8c76334 100644 --- a/server/utils/common.ts +++ b/server/utils/common.ts @@ -465,8 +465,6 @@ let currentReward = 16; // Total foundation reward let totalFoundationReward = await circulationsupply(height) - console.log("------------------------------------------------------------------"); - console.log("Current foundation reward is ", totalFoundationReward) return { block_height,