diff --git a/src/app/view/home/block-detail-list/block-detail-list.component.ts b/src/app/view/home/block-detail-list/block-detail-list.component.ts index 74cffe6..5cd7d21 100644 --- a/src/app/view/home/block-detail-list/block-detail-list.component.ts +++ b/src/app/view/home/block-detail-list/block-detail-list.component.ts @@ -31,7 +31,7 @@ export class BlockDetailListComponent implements OnInit { ngOnInit() { this.gettinglatesthashList(); this.getBlockDetails(); - console.log("Enter Nginit"); + //console.log("Enter Nginit"); } diff --git a/src/app/view/home/latestblocks/latestblocks.component.ts b/src/app/view/home/latestblocks/latestblocks.component.ts index e9c981e..f1b6f3b 100644 --- a/src/app/view/home/latestblocks/latestblocks.component.ts +++ b/src/app/view/home/latestblocks/latestblocks.component.ts @@ -48,6 +48,11 @@ export class LatestblocksComponent implements OnInit { if (res['status'] == 200) { this.pagedata = res.response; this.hashvalues = res.response.BlockchainBlockResult; + if(CurrentPage == 1){ + this.lastblock = res.response.BlockchainBlockResult[0].blockchain_block_height; + console.log(this.lastblock); + + } } }, error => {}, @@ -57,9 +62,9 @@ export class LatestblocksComponent implements OnInit { getLastCeatedBlock() { this.chartService.getLatestblockdetails().subscribe(response => { this.blockdetails = response; - console.log(this.blockdetails); + //console.log(this.blockdetails); if (this.lastblock != this.blockdetails.block_height) { - console.log('Create'); + //console.log('Create'); this.createBlock(); } this.lastblock = this.blockdetails.block_height;