diff --git a/server.ts b/server.ts index 0e922d0..70d2a4a 100644 --- a/server.ts +++ b/server.ts @@ -133,11 +133,11 @@ try { else if(option == "getblockcount") result= blockDetails.block_height; else if(option == "getdifficulty-randomx") - result = blockDetails.TotalDifficultyRandomx; + result = Number(blockDetails.TotalDifficultyRandomx); else if(option == "getdifficulty-cuckoo") - result = blockDetails.TotalCuckoo; + result = Number(blockDetails.TotalCuckoo); else if(option == "getdifficulty-progpow") - result = blockDetails.TotalDifficultyProgpow; + result = Number(blockDetails.TotalDifficultyProgpow); else if(option == "totalcoins") result = 21000000; else if(option == "getblockhash")