Re-fixing bug where high priority fee could display as lower than the medium and low fee.
fixes #278
This commit is contained in:
		
							parent
							
								
									619eee9492
								
							
						
					
					
						commit
						6ec07e5315
					
				@ -34,7 +34,7 @@ class FeeApi {
 | 
			
		||||
    if (pBlock.blockVSize <= 500000) {
 | 
			
		||||
      return this.defaultFee;
 | 
			
		||||
    }
 | 
			
		||||
    if (pBlock.blockVSize <= 950000 && nextBlock) {
 | 
			
		||||
    if (pBlock.blockVSize <= 950000 && !nextBlock) {
 | 
			
		||||
      const multiplier = (pBlock.blockVSize - 500000) / 500000;
 | 
			
		||||
      return Math.max(Math.round(useFee * multiplier), this.defaultFee);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@ -58,7 +58,7 @@ export class FeesBoxComponent implements OnInit {
 | 
			
		||||
    if (pBlock.blockVSize <= 500000) {
 | 
			
		||||
      return this.defaultFee;
 | 
			
		||||
    }
 | 
			
		||||
    if (pBlock.blockVSize <= 950000 && nextBlock) {
 | 
			
		||||
    if (pBlock.blockVSize <= 950000 && !nextBlock) {
 | 
			
		||||
      const multiplier = (pBlock.blockVSize - 500000) / 500000;
 | 
			
		||||
      return Math.max(Math.round(useFee * multiplier), this.defaultFee);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user