Skip to content

Commit

Permalink
fix(simapp): concurrent map writes when calling GetSigners (backport #…
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
4 people committed Aug 1, 2024
1 parent 91d412c commit ffd5696
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions simapp/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit ffd5696

Please sign in to comment.