mirror of
https://github.com/mempool/mempool.git
synced 2026-08-20 13:28:00 +02:00
Fix missing fee range in blocks api when querying non indexed blocks
This commit is contained in:
parent
c85d8cd29d
commit
cf720c4bef
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue