add blockchain bar to stratum page
This commit is contained in:
		
							parent
							
								
									3ea491ad13
								
							
						
					
					
						commit
						cb4bf0611e
					
				| @ -45,6 +45,7 @@ export class StratumList implements OnInit, OnDestroy { | |||||||
|   ) {} |   ) {} | ||||||
| 
 | 
 | ||||||
|   ngOnInit(): void { |   ngOnInit(): void { | ||||||
|  |     this.websocketService.want(['stats', 'blocks', 'mempool-blocks']); | ||||||
|     this.miningService.getPools().subscribe(pools => { |     this.miningService.getPools().subscribe(pools => { | ||||||
|       this.pools = {}; |       this.pools = {}; | ||||||
|       for (const pool of pools) { |       for (const pool of pools) { | ||||||
|  | |||||||
| @ -57,10 +57,16 @@ const routes: Routes = [ | |||||||
|         path: 'rbf', |         path: 'rbf', | ||||||
|         component: RbfList, |         component: RbfList, | ||||||
|       }, |       }, | ||||||
|       { |       ...(browserWindowEnv.STRATUM_ENABLED ? [{ | ||||||
|         path: 'stratum', |         path: 'stratum', | ||||||
|  |         component: StartComponent, | ||||||
|  |         children: [ | ||||||
|  |           { | ||||||
|  |             path: '', | ||||||
|             component: StratumList, |             component: StratumList, | ||||||
|       }, |           } | ||||||
|  |         ] | ||||||
|  |       }] : []), | ||||||
|       { |       { | ||||||
|         path: 'terms-of-service', |         path: 'terms-of-service', | ||||||
|         loadChildren: () => import('@components/terms-of-service/terms-of-service.module').then(m => m.TermsOfServiceModule), |         loadChildren: () => import('@components/terms-of-service/terms-of-service.module').then(m => m.TermsOfServiceModule), | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user