From da4517a95184ca4a12d8b3b1f7315d40e9021999 Mon Sep 17 00:00:00 2001 From: Vlad J Date: Fri, 25 Jul 2025 13:50:32 -0400 Subject: [PATCH] feat: set signer extraction adapter (#25008) Co-authored-by: Alex | Interchain Labs --- CHANGELOG.md | 1 + baseapp/abci_utils.go | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6708c0f032..fdc9223055 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -52,6 +52,7 @@ Ref: https://keepachangelog.com/en/1.0.0/ * (crypto) [#24919](https://github.com/cosmos/cosmos-sdk/pull/24919) add `NewPubKeyFromBytes` function to the `secp256r1` package to create `PubKey` from bytes * (server) [#24720](https://github.com/cosmos/cosmos-sdk/pull/24720) add `verbose_log_level` flag for configuring the log level when switching to verbose logging mode during sensitive operations (such as chain upgrades). * (crypto) [#24861](https://github.com/cosmos/cosmos-sdk/pull/24861) add `PubKeyFromCometTypeAndBytes` helper function to convert from `comet/v2` PubKeys to the `cryptotypes.Pubkey` interface. +* (abci_utils) [#25008](https://github.com/cosmos/cosmos-sdk/pull/24861) add the ability to assign a custom signer extraction adapter in `DefaultProposalHandler`. ### Improvements diff --git a/baseapp/abci_utils.go b/baseapp/abci_utils.go index e4cd7f7bd9..3e3229d6ee 100644 --- a/baseapp/abci_utils.go +++ b/baseapp/abci_utils.go @@ -233,6 +233,11 @@ func (h *DefaultProposalHandler) SetTxSelector(ts TxSelector) { h.txSelector = ts } +// SetSignerExtractionAdapter sets the SetSignerExtractionAdapter on the DefaultProposalHandler. +func (h *DefaultProposalHandler) SetSignerExtractionAdapter(signerExtAdapter mempool.SignerExtractionAdapter) { + h.signerExtAdapter = signerExtAdapter +} + // PrepareProposalHandler returns the default implementation for processing an // ABCI proposal. The application's mempool is enumerated and all valid // transactions are added to the proposal. Transactions are valid if they: