eth/gasprice: gofmt

This commit is contained in:
Nick Johnson 2018-01-09 12:35:00 +00:00
parent 38e8ac09c9
commit cd85458aa2

View file

@ -154,8 +154,8 @@ type getBlockPricesResult struct {
type transactionsByGasPrice []*types.Transaction type transactionsByGasPrice []*types.Transaction
func (t transactionsByGasPrice) Len() int { return len(t) } func (t transactionsByGasPrice) Len() int { return len(t) }
func (t transactionsByGasPrice) Swap(i, j int) { t[i], t[j] = t[j], t[i] } func (t transactionsByGasPrice) Swap(i, j int) { t[i], t[j] = t[j], t[i] }
func (t transactionsByGasPrice) Less(i, j int) bool { return t[i].GasPrice().Cmp(t[j].GasPrice()) < 0 } func (t transactionsByGasPrice) Less(i, j int) bool { return t[i].GasPrice().Cmp(t[j].GasPrice()) < 0 }
// getBlockPrices calculates the lowest transaction gas price in a given block // getBlockPrices calculates the lowest transaction gas price in a given block