0xPolygonHermez / zkevm-node

Go implementation of a node that operates the Polygon zkEVM Network
Other
531 stars 685 forks source link

add TxFeeCap config #3611

Closed tclemos closed 4 months ago

tclemos commented 5 months ago

Closes #3609.

What does this PR do?

This adds the new TxFeeCap configuration parameter, which represents the global transaction fee(price * gaslimit) cap for send-transaction variants. The unit is ether. The default value is 1, and 0 means no cap.

Example

[Pool]
TxFeeCap = 1.0