mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-16 01:40:44 +00:00
Merge pull request #910 from gzliudan/fix_fee_history
eth/gasprice: fix deserialization error for foundry
This commit is contained in:
commit
bdd7cf1f0c
1 changed files with 5 additions and 1 deletions
|
|
@ -124,7 +124,11 @@ func (oracle *Oracle) processBlock(bf *blockFees, percentiles []float64) {
|
||||||
txIndex++
|
txIndex++
|
||||||
sumGasUsed += sorter[txIndex].gasUsed
|
sumGasUsed += sorter[txIndex].gasUsed
|
||||||
}
|
}
|
||||||
bf.results.reward[i] = sorter[txIndex].reward
|
if sorter[txIndex].reward.Sign() >= 0 {
|
||||||
|
bf.results.reward[i] = sorter[txIndex].reward
|
||||||
|
} else {
|
||||||
|
bf.results.reward[i] = new(big.Int)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue