Merge branch 'master' of https://gitlab.com/epic-tech/explorer2.epic.tech-angular8
This commit is contained in:
commit
e7962f753a
@ -31,7 +31,7 @@ export class BlockDetailListComponent implements OnInit {
|
|||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.gettinglatesthashList();
|
this.gettinglatesthashList();
|
||||||
this.getBlockDetails();
|
this.getBlockDetails();
|
||||||
console.log("Enter Nginit");
|
//console.log("Enter Nginit");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -48,6 +48,11 @@ export class LatestblocksComponent implements OnInit {
|
|||||||
if (res['status'] == 200) {
|
if (res['status'] == 200) {
|
||||||
this.pagedata = res.response;
|
this.pagedata = res.response;
|
||||||
this.hashvalues = res.response.BlockchainBlockResult;
|
this.hashvalues = res.response.BlockchainBlockResult;
|
||||||
|
if(CurrentPage == 1){
|
||||||
|
this.lastblock = res.response.BlockchainBlockResult[0].blockchain_block_height;
|
||||||
|
console.log(this.lastblock);
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
error => {},
|
error => {},
|
||||||
@ -57,9 +62,9 @@ export class LatestblocksComponent implements OnInit {
|
|||||||
getLastCeatedBlock() {
|
getLastCeatedBlock() {
|
||||||
this.chartService.getLatestblockdetails().subscribe(response => {
|
this.chartService.getLatestblockdetails().subscribe(response => {
|
||||||
this.blockdetails = response;
|
this.blockdetails = response;
|
||||||
console.log(this.blockdetails);
|
//console.log(this.blockdetails);
|
||||||
if (this.lastblock != this.blockdetails.block_height) {
|
if (this.lastblock != this.blockdetails.block_height) {
|
||||||
console.log('Create');
|
//console.log('Create');
|
||||||
this.createBlock();
|
this.createBlock();
|
||||||
}
|
}
|
||||||
this.lastblock = this.blockdetails.block_height;
|
this.lastblock = this.blockdetails.block_height;
|
||||||
|
Loading…
Reference in New Issue
Block a user