fix(simapp): concurrent map writes when calling GetSigners (backport #21073) (#21130)

Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
Co-authored-by: Facundo <facundomedica@gmail.com>
This commit is contained in:
mergify[bot] 2024-08-01 16:20:17 +02:00 committed by GitHub
parent 91d412cc7d
commit ffd569672c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -209,6 +209,10 @@ func NewSimApp(
legacyAmino := codec.NewLegacyAmino()
txConfig := tx.NewTxConfig(appCodec, tx.DefaultSignModes)
if err := txConfig.SigningContext().Validate(); err != nil {
panic(err)
}
std.RegisterLegacyAminoCodec(legacyAmino)
std.RegisterInterfaces(interfaceRegistry)