diff --git a/server/i18n/de.json b/server/i18n/de.json index cc9bc2c..a380622 100644 --- a/server/i18n/de.json +++ b/server/i18n/de.json @@ -103,7 +103,8 @@ "getblocktime" : "Nimmt einen Höhenparameter und gibt die unixtime des Blocks zurück.", "takes":"nimmt ein", "Note" : "Hinweis", - "reward" : "Gibt die aktuelle Blockbelohnung zurück" + "reward" : "Gibt die aktuelle Blockbelohnung zurück", + "averageblocktime" : "Gibt die durchschnittliche Blockierungszeit der letzten 24 Stunden zurück" }, "commit-id-view": { "output-commit":"Output Commit", diff --git a/server/i18n/en.json b/server/i18n/en.json index 8e13f88..b3d86bd 100644 --- a/server/i18n/en.json +++ b/server/i18n/en.json @@ -103,7 +103,8 @@ "getblocktime" : " parameter and returns unixtime of the block.", "takes" : "takes a", "Note" : "Note", - "reward" : "returns current block reward" + "reward" : "returns current block reward", + "averageblocktime" : "returns average block time of past 24 hour" }, "commit-id-view": { "output-commit":"Output Commit", diff --git a/server/utils/common.ts b/server/utils/common.ts index e13ba63..32c9c16 100644 --- a/server/utils/common.ts +++ b/server/utils/common.ts @@ -358,8 +358,7 @@ const averageblockdifficulty = async() => { ) .catch(err_msg => { return(err_msg); - }); - console.log(BlockchainBlockPerSecondQuery); + }); return BlockchainBlockPerSecondQuery[0]['period']; } diff --git a/src/app/view/api-view/api-view.component.html b/src/app/view/api-view/api-view.component.html index f6c6a86..7594dc3 100644 --- a/src/app/view/api-view/api-view.component.html +++ b/src/app/view/api-view/api-view.component.html @@ -15,6 +15,7 @@
  • getdifficulty-cuckoo: {{'api-view.getdifficulty-cuckoo' | translate}}
  • totalcoins: {{'api-view.totalcoins' | translate}}
  • reward: {{'api-view.reward' | translate}}
  • +
  • average-blocktime: {{'api-view.averageblocktime' | translate}}
  • {{'api-view.Block-Queries' | translate}}