diff --git a/server/controllers/BlockchainBlock.ts b/server/controllers/BlockchainBlock.ts index cd4fb7e..f37348e 100644 --- a/server/controllers/BlockchainBlock.ts +++ b/server/controllers/BlockchainBlock.ts @@ -734,7 +734,7 @@ export class BlockchainBlockController { BlockchainBlockFetchQuery['Timestamp'] = moment .utc(BlockchainBlockFetchQuery['Timestamp']) .utc() - .format('YYYY-MM-DD,HH:MM:SS UTC'); + .format('YYYY-MM-DD, HH:MM:SS UTC'); BlockchainBlockFetchQuery['hashstart'] = BlockchainBlockFetchQuery[ 'Hash' diff --git a/server/controllers/BlockchainKernel.ts b/server/controllers/BlockchainKernel.ts index d36386d..b50a0d0 100644 --- a/server/controllers/BlockchainKernel.ts +++ b/server/controllers/BlockchainKernel.ts @@ -16,6 +16,7 @@ import { TransactionFeeDto, } from '../dtos'; import { Paginate } from '../utils'; +const https = require('https'); var moment = require('moment'); @@ -134,6 +135,29 @@ export class BlockchainKernelController { this.Translator, ); + /** + * @swagger + * /epic_explorer/v1/getpeers: + * get: + * tags: + * - name: Translator | Translator CONTROLLER + * summary: create a translator + * description: create a translator + * consumes: + * - application/json + * produces: + * - application/json + * parameters: + * - name: lang + * responses: + * 200: + * description: Transaction fee chart fetched successfully + */ + this.router.get( + `${this.path}/getpeers`, + this.getPeers, + ); + /** * @swagger * /epic_explorer/v1/blockchain_kernel/transactionheatmap: @@ -476,6 +500,24 @@ export class BlockchainKernelController { } }; + private getPeers = async ( + request: Request, + response: Response, + next: NextFunction, + ) => { + try { + https.get('http://5.9.174.122:3413/v1/peers/connected', (resp) => { + console.log('resp resp respresp',resp); + let data = ''; + + // A chunk of data has been recieved. + +}); + } catch (error) { + next(new InternalServerErrorException(error)); + } + }; + private TransactionFee = async ( request: Request, response: Response, diff --git a/server/i18n/de.json b/server/i18n/de.json index 816b9d9..ba9d838 100644 --- a/server/i18n/de.json +++ b/server/i18n/de.json @@ -1,17 +1,17 @@ { "total-difficulty" : "Gesamtschwierigkeit", - "transactions-by-time" : "Transkationen nach Zeit", + "transactions-by-time" : "Transaktionen im Zeitverlauf", "blocks" : "Blöcke", "transaction-fees" : "Transkationsgebühren", "supply-growth" : "Angebotswachstum", "blocks-mined" : "Blöcke abgebaut", "hashrate-growth-chart" : "HashRate-Wachstumstabelle", "block-interval" : "Sperrintervall", - "transactions-vs-date" : "Transaktionen gegen Datum", + "transactions-vs-date" : "Transaktionen nach Datum", "home": { "HEADER_TEXT": "Sie befinden sich in Beta", "COUNTDOWN": "Mainnet-Countdown", - "EXPLORE_IT": "Entdecke es", + "EXPLORE_IT": "Entdecke", "VIEWALL": "Alle Diagramme anzeigen", "BLOCKCHAIN_HEIGHT": "Blockchain Höhe", "LATEST_BLOCK": "Letzter Block", @@ -22,19 +22,19 @@ "AGE": "Alter", "FEE": "Gebühr", "DIFFICULTY" : "Schwierigkeit", - "POW_ALGO" : "Pow Algo", + "POW_ALGO" : "PoW Algo", "INPUTS" : "Eingänge", "INPUT" : "Eingang", "OUTPUTS" : "Ausgänge", "OUTPUT" : "Ausgabe", "KERNELS" : "Kernel", - "EPIC" : "Epos", + "EPIC" : "Epic", "EXPLORE" : "Erkunden", "AGO" : "vor", "MINUTE" : "minute", "BLOCKS_PER_PAGE" : "Blöcke pro Seite", "TOTAL_DIFFICULTY" : "Gesamtschwierigkeit", - "TRANSACTIONS_BY_TIME" : "Transkationen nach Zeit", + "TRANSACTIONS_BY_TIME" : "Transaktionen im Zeitverlauf", "BLOCKS" : "Blöcke", "BLOCK" : "Block", "BLOCKS_MINED" : "Blöcke abgebaut", @@ -52,7 +52,7 @@ "NOT_FOUND1" : "Die von Ihnen gesuchte Seite wurde nicht gefunden", "NOT_FOUND2" : "Gehe zum Explorer", "COMMIT" : "verpflichten", - "ALGORITHM" : "Pow-Algorithmus", + "ALGORITHM" : "PoW Algorithmus", "TYPE" : "Art", "SPEND" : "Verbringen", "FEATURES" : "Eigenschaften", @@ -61,6 +61,13 @@ "SEARCH_RESULT1" : "Ihr Suchbegriff", "SEARCH_RESULT2" : "ist zu kurz", "SEARCH_RESULT3" : "Bitte geben Sie mindestens sechs Zeichen ein, wenn Sie nach Hash suchen", - "total-difficulty" : "Gesamtschwierigkeit" + "total-difficulty" : "Gesamtschwierigkeit", + "PEERS" : "Gleichaltrigen", + "CAPABILITIES" : "Fähigkeiten", + "USER_AGENT" : "User Agent", + "VERSION" : "Ausführung", + "ADDR" : "Adr", + "DIRECTION" : "Richtung", + "SPENT" : "Verbraucht" } } diff --git a/server/i18n/en.json b/server/i18n/en.json index 24961d5..84d39df 100644 --- a/server/i18n/en.json +++ b/server/i18n/en.json @@ -1,17 +1,17 @@ { "total-difficulty" : "Total Difficulty", - "transactions-by-time" : "Transactions By Time", + "transactions-by-time" : "Transactions over time", "blocks" : "Blocks", "transaction-fees" : "Transaction Fees", "supply-growth" : "Supply Growth", "blocks-mined" : "Blocks Mined", "hashrate-growth-chart" : "HashRate Growth Chart", "block-interval" : "Block Interval", - "transactions-vs-date" : "Transactions Vs Date", + "transactions-vs-date" : "Transactions by Date", "home": { "HEADER_TEXT": "You are on Beta", "COUNTDOWN": "Mainnet Countdown", - "EXPLORE_IT": "Explore it", + "EXPLORE_IT": "Explore", "VIEWALL": "View All Charts", "BLOCKCHAIN_HEIGHT": "Blockchain Height", "LATEST_BLOCK": "Latest Blocks", @@ -22,7 +22,7 @@ "AGE": "Age", "FEE": "Fee", "DIFFICULTY" : "Difficulty", - "POW_ALGO" : "Pow Algo", + "POW_ALGO" : "PoW Algo", "INPUTS" : "Inputs", "INPUT" : "Input", "OUTPUTS" : "Outputs", @@ -34,7 +34,7 @@ "BLOCKS_PER_PAGE" : "Blocks per page", "MINUTE" : "minute", "TOTAL_DIFFICULTY" : "Total Difficulty", - "TRANSACTIONS_BY_TIME" : "Transactions By Time", + "TRANSACTIONS_BY_TIME" : "Transactions over time", "BLOCKS" : "Blocks", "BLOCK" : "Block", "BLOCKS_MINED" : "Blocks Mined", @@ -42,7 +42,7 @@ "SUPPLY_GROWTH" : "Supply Growth", "HASHRATE_GROWTH_CHART" : "HashRate Growth Chart", "BLOCK_INTERVAL" : "Block Interval", - "TRANSACTIONS_VS_DATE" : "Transactions Vs Date", + "TRANSACTIONS_VS_DATE" : "Transactions by Date", "DAYS" : "days", "MONTHS" : "months", "WEEK" : "week", @@ -51,7 +51,7 @@ "NOT_FOUND" : "Page Not Found", "NOT_FOUND1" : "Page you are looking for is not found", "NOT_FOUND2" : "Go to Explorer", - "ALGORITHM" : "Pow Algorithm", + "ALGORITHM" : "PoW Algorithm", "COMMIT" : "commit", "TYPE" : "Type", "SPEND" : "Spend", @@ -66,6 +66,7 @@ "USER_AGENT" : "User Agent", "VERSION" : "Version", "ADDR" : "Addr", - "DIRECTION" : "Direction" + "DIRECTION" : "Direction", + "SPENT" : "Spent" } } diff --git a/src/app/view/block-view/block-detail/block-detail.component.html b/src/app/view/block-view/block-detail/block-detail.component.html index d6434d9..064c87c 100644 --- a/src/app/view/block-view/block-detail/block-detail.component.html +++ b/src/app/view/block-view/block-detail/block-detail.component.html @@ -69,8 +69,8 @@
{{'home.BLOCKCHAIN_HEIGHT' | translate}}
{{ latestblockdetail.block_height | number }}
-{{'home.BLOCKCHAIN_HEIGHT' | translate}}
+{{'home.LATEST_BLOCK' | translate}}
{{latestblockdetail.letest_block_num}} {{latestblockdetail.letest_block_duration}}
-{{'home.LATEST_BLOCK' | translate}}
+Cuckaroo : {{latestblockdetail.targetdifficultycuckaroo | number}}, Cuckatoo : {{latestblockdetail.targetdifficultycuckatoo | number}}, ProgPow : {{latestblockdetail.targetdifficultyprogpow | number}}, RandomX : {{latestblockdetail.targetdifficultyrandomx | number}}
-{{'home.LATEST_BLOCK1' | translate}}
+{{'home.LATEST_BLOCK1' | translate}}
+Cuckaroo : {{latestblockdetail.targetdifficultycuckaroo | number}}
+Cuckatoo : {{latestblockdetail.targetdifficultycuckatoo | number}}
+ProgPow : {{latestblockdetail.targetdifficultyprogpow | number}}
+RandomX : {{latestblockdetail.targetdifficultyrandomx | number}}
+{{'home.COIN_IN' | translate}}
{{latestblockdetail.coin_existence | number}} Epic
-{{'home.COIN_IN' | translate}}
+