filecoin-shipyard / browser-retrieval

A p2p network of Filecoin content retrievers
21 stars 8 forks source link

Override gas estimator values so messages can be mined on first try #202

Closed ghost closed 3 years ago

ghost commented 3 years ago

After the gas price estimator has processed a message and filled in the values for the 3 gas variables, let's do this as an extra safety precaution:

Gas Limit: increase it by 20%. I think some messages come back with too low of a gas limit.

Gas Fee Cap: set this to MAX(fee cap set by gas estimator, 5,000,000,000)

Gas Premium: (no change)

The number 5,000,000,000 should be a global constant called minCurrentBaseFee that we can edit if the Base Fee in the future goes to 6,000,000,000 or higher.