Commit for circulating supply API

This commit is contained in:
shunmugam 2020-01-13 13:00:24 +05:30
parent 89c429f382
commit 2be889d036
2 changed files with 1 additions and 3 deletions

View File

@ -129,7 +129,7 @@ try {
{ {
let result; //500 let result; //500
if(option == "circulating") if(option == "circulating")
result= blockDetails.coin_existence; result= blockDetails.coin_existence - blockDetails.totalFoundationReward;
else if(option == "reward") else if(option == "reward")
result= blockDetails.currentReward; result= blockDetails.currentReward;
else if(option == "getblockcount") else if(option == "getblockcount")

View File

@ -465,8 +465,6 @@ let currentReward = 16;
// Total foundation reward // Total foundation reward
let totalFoundationReward = await circulationsupply(height) let totalFoundationReward = await circulationsupply(height)
console.log("------------------------------------------------------------------");
console.log("Current foundation reward is ", totalFoundationReward)
return { return {
block_height, block_height,