diff --git a/server/controllers/BlockchainBlock.ts b/server/controllers/BlockchainBlock.ts index 1b7f4ec..274ed2f 100644 --- a/server/controllers/BlockchainBlock.ts +++ b/server/controllers/BlockchainBlock.ts @@ -1053,6 +1053,7 @@ export class BlockchainBlockController { 'blockchain_block.TotalDifficultyProgpow', 'blockchain_block.TotalDifficultyRandomx', 'blockchain_block.previous_id', + 'EXTRACT(EPOCH FROM (blockchain_block.timestamp - LAG(blockchain_block.timestamp) OVER (ORDER BY blockchain_block.timestamp))) as timetaken', 'blockchain_block.total_difficulty_cuckaroo - LAG(blockchain_block.total_difficulty_cuckaroo) OVER (ORDER BY blockchain_block.total_difficulty_cuckaroo) AS target_difficulty_cuckaroo', 'blockchain_block.total_difficulty_cuckatoo - LAG(blockchain_block.total_difficulty_cuckatoo) OVER (ORDER BY blockchain_block.total_difficulty_cuckatoo) AS target_difficulty_cuckatoo', 'blockchain_block.total_difficulty_progpow - LAG(blockchain_block.total_difficulty_progpow) OVER (ORDER BY blockchain_block.total_difficulty_progpow) AS target_difficulty_progpow', diff --git a/server/i18n/de.json b/server/i18n/de.json index 581a87f..d2445de 100644 --- a/server/i18n/de.json +++ b/server/i18n/de.json @@ -14,6 +14,7 @@ "avg-block-interval" : "Durchschnittliches Sperrintervall", "home": { "HEADER_TEXT": "Sie befinden sich in Beta", + "TIMETAKEN": "Genomen tijd (sec)", "COUNTDOWN": "Mainnet-Countdown", "EXPLORE_IT": "Entdecke", "VIEWALL": "Alle Diagramme anzeigen", diff --git a/server/i18n/en.json b/server/i18n/en.json index c5c53b6..98c2b4f 100644 --- a/server/i18n/en.json +++ b/server/i18n/en.json @@ -15,6 +15,7 @@ "home": { "HEADER_TEXT": "You are on Beta", "COUNTDOWN": "Mainnet Countdown", + "TIMETAKEN": "Time Taken(sec)", "EXPLORE_IT": "Explore", "VIEWALL": "View All Charts", "BLOCKCHAIN_HEIGHT": "Blockchain Height", diff --git a/src/app/view/home/latestblocks/latestblocks.component.html b/src/app/view/home/latestblocks/latestblocks.component.html index a78c301..a5a83c2 100644 --- a/src/app/view/home/latestblocks/latestblocks.component.html +++ b/src/app/view/home/latestblocks/latestblocks.component.html @@ -18,6 +18,11 @@
{{'home.AGE' | translate}}
+
+
+
{{'home.TIMETAKEN' | translate}}
+
+
{{'home.TARGET_DIFFICULTY' | translate}}
@@ -74,6 +79,11 @@
Age
{{ hashvalue.age }}
+
+
+
Time Taken
{{ hashvalue.timetaken }} +
+