mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 14:16:44 +00:00
Merge pull request #89 from maticnetwork/arpit/mat-2425
Make few warn logs to debug (mat-2425)
This commit is contained in:
commit
adf77d28e8
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
// 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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue