Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove unwanted logs in global fee #2892

Merged
merged 1 commit into from
Jan 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions x/globalfee/ante/fee.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ func (mfd FeeDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, ne
allowedToBypassMinFee := allBypassMsgs && doesNotExceedMaxGasUsage

if allowedToBypassMinFee {
ctx.Logger().Info("Pass allowedToBypassMinFee check")
return next(ctx, tx, simulate)
}

Expand Down Expand Up @@ -159,8 +158,6 @@ func (mfd FeeDecorator) GetTxFeeRequired(ctx sdk.Context, tx sdk.FeeTx) (sdk.Coi
return sdk.Coins{}, err
}

ctx.Logger().Info(fmt.Sprintf("GlobalFees: %v, IsCheckTx: %v", globalFees, ctx.IsCheckTx()))

// In DeliverTx, the global fee min gas prices are the only tx fee requirements.
if !ctx.IsCheckTx() {
return globalFees, nil
Expand All @@ -171,10 +168,7 @@ func (mfd FeeDecorator) GetTxFeeRequired(ctx sdk.Context, tx sdk.FeeTx) (sdk.Coi

// Get local minimum-gas-prices
localFees := GetMinGasPrice(ctx, int64(tx.GetGas()))
ctx.Logger().Info(fmt.Sprintf("localFees: %v, IsCheckTx: %v", localFees, ctx.IsCheckTx()))

c, err := CombinedFeeRequirement(globalFees, localFees)
ctx.Logger().Info(fmt.Sprintf("CombinedFeeRequirement: %v, IsCheckTx: %v", c, ctx.IsCheckTx()))

// Return combined fee requirements
return c, err
Expand Down Expand Up @@ -224,11 +218,8 @@ func (mfd FeeDecorator) DefaultZeroGlobalFee(ctx sdk.Context) ([]sdk.DecCoin, er

func (mfd FeeDecorator) ContainsOnlyBypassMinFeeMsgs(ctx sdk.Context, msgs []sdk.Msg) bool {
bypassMsgTypes := mfd.GetBypassMsgTypes(ctx)
ctx.Logger().Info(fmt.Sprintf("BypassMsgs: %v", bypassMsgTypes))

for _, msg := range msgs {
ctx.Logger().Info(fmt.Sprintf("TxBypassMsg: %v", sdk.MsgTypeURL(msg)))

if tmstrings.StringInSlice(sdk.MsgTypeURL(msg), bypassMsgTypes) {
continue
}
Expand Down
Loading