mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
eth/gasprice: fix deserialization error for foundry
This commit is contained in:
parent
21a430963c
commit
975cddacc5
1 changed files with 5 additions and 1 deletions
|
|
@ -124,7 +124,11 @@ func (oracle *Oracle) processBlock(bf *blockFees, percentiles []float64) {
|
|||
txIndex++
|
||||
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