good morning!!!!

Skip to content
Snippets Groups Projects
Commit a05ded79 authored by Arpit Temani's avatar Arpit Temani
Browse files

chg: caller gas allowance logs from warn to debug

parent 21bbd174
No related branches found
No related tags found
No related merge requests found
...@@ -783,7 +783,7 @@ func (args *CallArgs) ToMessage(globalGasCap uint64) types.Message { ...@@ -783,7 +783,7 @@ func (args *CallArgs) ToMessage(globalGasCap uint64) types.Message {
gas = uint64(*args.Gas) gas = uint64(*args.Gas)
} }
if globalGasCap != 0 && globalGasCap < gas { if globalGasCap != 0 && globalGasCap < gas {
log.Warn("Caller gas above allowance, capping", "requested", gas, "cap", globalGasCap) log.Debug("Caller gas above allowance, capping", "requested", gas, "cap", globalGasCap)
gas = globalGasCap gas = globalGasCap
} }
gasPrice := new(big.Int) gasPrice := new(big.Int)
...@@ -997,7 +997,7 @@ func DoEstimateGas(ctx context.Context, b Backend, args CallArgs, blockNrOrHash ...@@ -997,7 +997,7 @@ func DoEstimateGas(ctx context.Context, b Backend, args CallArgs, blockNrOrHash
} }
// Recap the highest gas allowance with specified gascap. // Recap the highest gas allowance with specified gascap.
if gasCap != 0 && hi > gasCap { if gasCap != 0 && hi > gasCap {
log.Warn("Caller gas above allowance, capping", "requested", hi, "cap", gasCap) log.Debug("Caller gas above allowance, capping", "requested", hi, "cap", gasCap)
hi = gasCap hi = gasCap
} }
cap = hi cap = hi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment