Skip to content

Commit

Permalink
tx gen to failure
Browse files Browse the repository at this point in the history
  • Loading branch information
kocubinski committed Nov 6, 2024
1 parent efd0022 commit bbe1ac8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion simapp/v2/app_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ var (
GenesisParams: &benchmarkmodulev1.GenesisParams{
Seed: 34,
StoreKeyCount: 10,
KeyCount: 100_000,
KeyCount: 500_000,
KeyMeanLength: 64,
KeyStdDevLength: 12,
ValueMeanLength: 1024,
Expand Down
10 changes: 9 additions & 1 deletion x/benchmark/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ func NewLoadTestCmd() *cobra.Command {
ValueStdDev: 256,
BucketCount: storeKeyCount,
})
var txCount uint64
defer func() {
cmd.Printf("generated %d transactions\n", txCount)
}()
for {
select {
case <-ctx.Done():
Expand All @@ -81,7 +85,11 @@ func NewLoadTestCmd() *cobra.Command {
Caller: clientCtx.FromAddress,
Ops: []*benchmark.Op{op},
}
tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg)
err := tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg)
if err != nil {
return err
}
txCount++
}
},
}
Expand Down

0 comments on commit bbe1ac8

Please sign in to comment.