File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ import (
5656)
5757
5858// ReleaseVersion is the release version for the code.
59- var ReleaseVersion = "0.4.7 "
59+ var ReleaseVersion = "0.4.8 "
6060
6161func main () {
6262 os .Exit (main2 ())
Original file line number Diff line number Diff line change @@ -303,11 +303,11 @@ func (s *Service) compileTransaction(ctx context.Context,
303303 maxPriorityFeePerGas := tx .MaxPriorityFeePerGas ()
304304 dbTransaction .MaxPriorityFeePerGas = & maxPriorityFeePerGas
305305 // Calculate the gas price.
306- feePerGas := maxPriorityFeePerGas
307- if maxPriorityFeePerGas > maxFeePerGas - block . BaseFeePerGas () {
308- feePerGas = maxFeePerGas - block . BaseFeePerGas ()
306+ priorityFeePerGas := maxFeePerGas - block . BaseFeePerGas ()
307+ if priorityFeePerGas > maxPriorityFeePerGas {
308+ priorityFeePerGas = maxPriorityFeePerGas
309309 }
310- dbTransaction .GasPrice = feePerGas
310+ dbTransaction .GasPrice = block . BaseFeePerGas () + priorityFeePerGas
311311 }
312312
313313 return dbTransaction
Original file line number Diff line number Diff line change @@ -250,11 +250,11 @@ func (s *Service) compileTransaction(ctx context.Context,
250250 maxPriorityFeePerGas := tx .MaxPriorityFeePerGas ()
251251 dbTransaction .MaxPriorityFeePerGas = & maxPriorityFeePerGas
252252 // Calculate the gas price.
253- feePerGas := maxPriorityFeePerGas
254- if maxPriorityFeePerGas > maxFeePerGas - block . BaseFeePerGas () {
255- feePerGas = maxFeePerGas - block . BaseFeePerGas ()
253+ priorityFeePerGas := maxFeePerGas - block . BaseFeePerGas ()
254+ if priorityFeePerGas > maxPriorityFeePerGas {
255+ priorityFeePerGas = maxPriorityFeePerGas
256256 }
257- dbTransaction .GasPrice = feePerGas
257+ dbTransaction .GasPrice = block . BaseFeePerGas () + priorityFeePerGas
258258 }
259259
260260 return dbTransaction
You can’t perform that action at this time.
0 commit comments