transaction fee chart changes

This commit is contained in:
root 2019-09-05 15:26:32 +02:00
parent a56047f85d
commit 8626ed55f2
3 changed files with 9 additions and 9 deletions

View File

@ -658,8 +658,8 @@ export class BlockchainKernelController {
}
const TransactionFeeQuery = await getConnection(Global.network)
.query(
"select 1 as hash, date(DATE_TRUNC('day', timestamp)) as date, sum(fee)/1000000 as fee \
from blockchain_block t1 join blockchain_kernel t2 on t2.block_id=t1.hash where " +
"select 1 as hash, date(DATE_TRUNC('day', timestamp)) as date, avg(fee)/1000000000 as fee \
from blockchain_block t1 join blockchain_kernel t2 on t2.block_id=t1.hash where fee > 0 and " +
timeIntervalQry +
"group by DATE_TRUNC('day', timestamp) order by date",
)
@ -670,7 +670,7 @@ export class BlockchainKernelController {
Fee = [];
TransactionFeeQuery.forEach(e => {
date.push(moment(e.date).format('YYYY-MM-DD'));
Fee.push(parseInt(e.fee));
Fee.push(e.fee);
});
if(date.length == 0){

View File

@ -3,7 +3,7 @@
"transactions-over-time" : "Transaktionen im Zeitverlauf",
"blocks-by-algorithm" : "Blöcke nach Algorithmus",
"blocks" : "Blöcke",
"transaction-fees" : "Transkationsgebühren",
"transaction-fees" : "durchschnittliche Transaktionsgebühr",
"supply-growth" : "Angebotswachstum",
"blocks-mined" : "Blöcke abgebaut",
"hashrate-growth-chart" : "HashRate-Wachstumstabelle",
@ -47,13 +47,13 @@
"BLOCKSINTERVAL" : "Sperrintervall",
"SUPPLY_GROWTH_HOVER" : "Aktuelle Blockbelohnung",
"BOCKS_COUNT_HOVER" : "Anzahl der letzten 24h Blöcke",
"TRANSACTION_FEE_HOVER" : "Heute Transaktionsgebühren insgesamt",
"TRANSACTION_FEE_HOVER" : "24h Durchschnittsgebühr",
"BLOCK_INTERVAL_HOVER" : "Heute Blockintervall in Sekunden",
"TRANSACTION_LINECHAT_HOVER" : "Heute Gesamtzahl der Transaktionen",
"BLOCK_INTERVAL_BW_BLOCKS_HOVER" : "Letztes Blockintervall in Sekunden",
"BLOCK" : "Block",
"BLOCKS_MINED" : "Blöcke abgebaut",
"TRANSACTION_FEES" : "Transkationsgebühren",
"TRANSACTION_FEES" : "durchschnittliche Transaktionsgebühr",
"SUPPLY_GROWTH" : "Angebotswachstum",
"HASHRATE_GROWTH_CHART" : "HashRate-Wachstumstabelle",
"BLOCK_INTERVAL" : "Durchschnittliches Sperrintervall",

View File

@ -3,7 +3,7 @@
"transactions-over-time" : "Transactions over time",
"blocks-by-algorithm" : "Blocks by Algorithm",
"blocks" : "Blocks",
"transaction-fees" : "Transaction Fees",
"transaction-fees" : "Average Transaction Fee",
"supply-growth" : "Supply Growth",
"blocks-mined" : "Blocks Mined",
"hashrate-growth-chart" : "HashRate Growth Chart",
@ -47,13 +47,13 @@
"BLOCKSINTERVAL" : "Block Interval",
"SUPPLY_GROWTH_HOVER" : "Current Block Reward",
"BOCKS_COUNT_HOVER" : "Last 24h Blocks Count",
"TRANSACTION_FEE_HOVER" : "Today Total Transaction Fees",
"TRANSACTION_FEE_HOVER" : "24h Avg Fee",
"BLOCK_INTERVAL_HOVER" : "Today Block Interval in Secs",
"TRANSACTION_LINECHAT_HOVER" : "Today Total Transaction Count",
"BLOCK_INTERVAL_BW_BLOCKS_HOVER" : "Last Block Interval in Secs",
"BLOCK" : "Block",
"BLOCKS_MINED" : "Blocks Mined",
"TRANSACTION_FEES" : "Transaction Fees",
"TRANSACTION_FEES" : "Average Transaction Fee",
"SUPPLY_GROWTH" : "Supply Growth",
"HASHRATE_GROWTH_CHART" : "HashRate Growth Chart",
"BLOCK_INTERVAL" : "Avg Block Interval",