From 3fb35b3f3bf38273bc82114b9262fd28ac26433f Mon Sep 17 00:00:00 2001 From: Dan Miller Date: Thu, 3 Nov 2022 11:48:09 -0700 Subject: [PATCH] Change block reward from 8 to 4. --- server/utils/common.ts | 4 ++-- src/app/view/home/graph-list/graph-list.component.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/utils/common.ts b/server/utils/common.ts index 55a98e7..26d1783 100644 --- a/server/utils/common.ts +++ b/server/utils/common.ts @@ -249,10 +249,10 @@ const latestBlockDetails = async()=> { return(err_msg); }); - const space = await exec('du -sh /root/.epic/main/'); + const space = await exec('du -sh /root/.epic/main/chain_data/ --exclude=*.zip'); let disk_space = space.stdout.split('\t')[0]; - const space_new = await exec('du -sk /root/.epic/main/'); + const space_new = await exec('du -sk /root/.epic/main/chain_data/ --exclude=*.zip'); //let disk_space_kb = space_new.stdout.split('\t')[0]; let disk_space_kb = (space_new.stdout.split('\t')[0] / 1000000).toFixed(2)+"G"; let height = BlockchainLatestBlockQuery[0].height; diff --git a/src/app/view/home/graph-list/graph-list.component.ts b/src/app/view/home/graph-list/graph-list.component.ts index 2a7b94e..e0d5614 100644 --- a/src/app/view/home/graph-list/graph-list.component.ts +++ b/src/app/view/home/graph-list/graph-list.component.ts @@ -414,7 +414,7 @@ export class GraphListComponent implements OnInit { let today_date_index = gDate.indexOf(moment(Date.now()).format('YYYY-MM-DD')); //let today_date_index = gDate.indexOf('2019-08-06'); //this.gg_last = gReward[today_date_index]; - this.gg_last = "8"; + this.gg_last = "4"; let range = []; if(gaddedreward.length == 1 && gaddedreward[0]!= 0){ range = [ (gaddedreward[0] - (gaddedreward[0] * 0.3)), (gaddedreward[0] + (gaddedreward[0] * 0.3)) ];