From 682a9acd83d9abc52941bbb3b92565f6887967fb Mon Sep 17 00:00:00 2001 From: Marko Date: Mon, 28 Aug 2023 17:54:22 +0200 Subject: [PATCH 1/2] chore: change prune logging info to debug (#17560) Co-authored-by: marbar3778 --- store/rootmulti/store.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/store/rootmulti/store.go b/store/rootmulti/store.go index 7fe7f048bf04..2734fe5b83e3 100644 --- a/store/rootmulti/store.go +++ b/store/rootmulti/store.go @@ -646,8 +646,8 @@ func (rs *Store) GetKVStore(key types.StoreKey) types.KVStore { func (rs *Store) handlePruning(version int64) error { pruneHeight := rs.pruningManager.GetPruningHeight(version) - rs.logger.Info("prune start", "height", version) - defer rs.logger.Info("prune end", "height", version) + rs.logger.Debug("prune start", "height", version) + defer rs.logger.Debug("prune end", "height", version) return rs.PruneStores(pruneHeight) } From acc8c4ccb215cb35d83ef35acf54b7471245c9f1 Mon Sep 17 00:00:00 2001 From: Rootul P Date: Mon, 28 Aug 2023 12:12:04 -0400 Subject: [PATCH 2/2] docs: improve DeductFeeDecorator godoc (#17559) Co-authored-by: Marko --- x/auth/ante/fee.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/x/auth/ante/fee.go b/x/auth/ante/fee.go index d28f9f999752..7581765ecf7d 100644 --- a/x/auth/ante/fee.go +++ b/x/auth/ante/fee.go @@ -15,9 +15,9 @@ import ( // the effective fee should be deducted later, and the priority should be returned in abci response. type TxFeeChecker func(ctx sdk.Context, tx sdk.Tx) (sdk.Coins, int64, error) -// DeductFeeDecorator deducts fees from the first signer of the tx -// If the first signer does not have the funds to pay for the fees, return with InsufficientFunds error -// Call next AnteHandler if fees successfully deducted +// DeductFeeDecorator deducts fees from the fee payer. The fee payer is the fee granter (if specified) or first signer of the tx. +// If the fee payer does not have the funds to pay for the fees, return an InsufficientFunds error. +// Call next AnteHandler if fees successfully deducted. // CONTRACT: Tx must implement FeeTx interface to use DeductFeeDecorator type DeductFeeDecorator struct { accountKeeper AccountKeeper