Use 10 minutes avg block time for halving calculation
This commit is contained in:
		
							parent
							
								
									20eb75b525
								
							
						
					
					
						commit
						9d013ef477
					
				@ -63,10 +63,8 @@ export class DifficultyComponent implements OnInit {
 | 
			
		||||
          colorPreviousAdjustments = '#ffffff66';
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        const timeAvgMins = da.timeAvg;
 | 
			
		||||
        const now = new Date().getTime() / 1000;
 | 
			
		||||
        const blocksUntilHalving = 210000 - (block.height % 210000);
 | 
			
		||||
        const timeUntilHalving = (blocksUntilHalving * timeAvgMins * 60 * 1000) + (now * 1000);
 | 
			
		||||
        const timeUntilHalving = new Date().getTime() + (blocksUntilHalving * 600000);
 | 
			
		||||
 | 
			
		||||
        const data = {
 | 
			
		||||
          base: `${da.progressPercent.toFixed(2)}%`,
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user