Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tac0turtle committed Dec 21, 2023
1 parent 34d2743 commit 8a42f45
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
5 changes: 0 additions & 5 deletions crypto/types/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion x/auth/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
4 changes: 2 additions & 2 deletions x/auth/ante/sigverify_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8a42f45

Please sign in to comment.