Fix missing fee range in blocks api when querying non indexed blocks
This commit is contained in:
		
							parent
							
								
									c85d8cd29d
								
							
						
					
					
						commit
						cf720c4bef
					
				@ -17,7 +17,7 @@ export function prepareBlock(block: any): BlockExtended {
 | 
			
		||||
    extras: {
 | 
			
		||||
      coinbaseRaw: block.coinbase_raw ?? block.extras?.coinbaseRaw,
 | 
			
		||||
      medianFee: block.medianFee ?? block.median_fee ?? block.extras?.medianFee,
 | 
			
		||||
      feeRange: block.feeRange ?? block.fee_span,
 | 
			
		||||
      feeRange: block.feeRange ?? block?.extras?.feeRange ?? block.fee_span,
 | 
			
		||||
      reward: block.reward ?? block?.extras?.reward,
 | 
			
		||||
      totalFees: block.totalFees ?? block?.fees ?? block?.extras?.totalFees,
 | 
			
		||||
      avgFee: block?.extras?.avgFee ?? block.avg_fee,
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user