Commit for revert API changes

This commit is contained in:
shunmugam 2019-12-06 13:34:12 +05:30
parent e7a526ef91
commit 55b4ff6a01

View File

@ -129,7 +129,7 @@ try {
{ {
let result; //500 let result; //500
if(option == "circulating") if(option == "circulating")
result= blockDetails.userReward; result= blockDetails.coin_existence;
else if(option == "reward") else if(option == "reward")
result= blockDetails.currentReward; result= blockDetails.currentReward;
else if(option == "getblockcount") else if(option == "getblockcount")
@ -140,10 +140,8 @@ try {
result = Number(blockDetails.TotalCuckoo); result = Number(blockDetails.TotalCuckoo);
else if(option == "getdifficulty-progpow") else if(option == "getdifficulty-progpow")
result = Number(blockDetails.TotalDifficultyProgpow); result = Number(blockDetails.TotalDifficultyProgpow);
else if(option == "maxcoins")
result = 21000000;
else if(option == "totalcoins") else if(option == "totalcoins")
result= blockDetails.coin_existence; result = 21000000 * 100000000;
else if(option == "average-blocktime") else if(option == "average-blocktime")
{ {
let data = await averageblockdifficulty(); let data = await averageblockdifficulty();