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,