diff --git a/crypto/types/cache.go b/crypto/types/cache.go index 679e42a274c0..45585ff3df69 100644 --- a/crypto/types/cache.go +++ b/crypto/types/cache.go @@ -4,11 +4,6 @@ import ( lru "github.com/hashicorp/golang-lru/v2" ) -const ( - TxHashLen = 32 - AddressStringLen = 2 + 20*2 -) - // SignatureCache is a cache of verified signatures type SignatureCache struct { data *lru.Cache[string, []byte] diff --git a/x/auth/CHANGELOG.md b/x/auth/CHANGELOG.md index 7d9d786f3a9d..1ec339fa683d 100644 --- a/x/auth/CHANGELOG.md +++ b/x/auth/CHANGELOG.md @@ -37,7 +37,7 @@ Ref: https://keepachangelog.com/en/1.0.0/ * [#18422](https://github.com/cosmos/cosmos-sdk/issues/18422) `NewSigVerificationDecorator` takes a new parameter that allows applications to decide if they want to cache signatures verification or not. -### Bug Fixes +### Consensus Breaking Changes * [#18817](https://github.com/cosmos/cosmos-sdk/pull/18817) SigVerification, GasConsumption, IncreaseSequence ante decorators have all been joined into one SigVerification decorator. Gas consumption during TX validation flow has reduced. diff --git a/x/auth/ante/sigverify_test.go b/x/auth/ante/sigverify_test.go index ae87e5725824..59144c00ef63 100644 --- a/x/auth/ante/sigverify_test.go +++ b/x/auth/ante/sigverify_test.go @@ -178,8 +178,8 @@ func TestSigVerification(t *testing.T) { txConfigOpts, ) require.NoError(t, err) - noOpGasConsume := func(_ storetypes.GasMeter, _ signing.SignatureV2, _ types.Params, _ bool) error { return nil } - svd := ante.NewSigVerificationDecorator(suite.accountKeeper, anteTxConfig.SignModeHandler(), noOpGasConsume) + noOpGasConsume := func(_ storetypes.GasMeter, _ signing.SignatureV2, _ types.Params) error { return nil } + svd := ante.NewSigVerificationDecorator(suite.accountKeeper, anteTxConfig.SignModeHandler(), noOpGasConsume, true) antehandler := sdk.ChainAnteDecorators(spkd, svd) defaultSignMode, err := authsign.APISignModeToInternal(anteTxConfig.SignModeHandler().DefaultMode()) require.NoError(t, err)