Skip to content

Commit

Permalink
Switch off all validation to test cosmoss throughput
Browse files Browse the repository at this point in the history
  • Loading branch information
janekolszak committed Oct 12, 2023
1 parent 7c28e3c commit 00b13de
Showing 1 changed file with 17 additions and 18 deletions.
35 changes: 17 additions & 18 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package app

import (
"encoding/json"
"fmt"
"io"
"os"
"path/filepath"
Expand Down Expand Up @@ -635,26 +634,26 @@ func New(
app.MountMemoryStores(memKeys)

// initialize BaseApp
anteHandler, err := sequencerante.NewAnteHandler(
sequencerante.HandlerOptions{
AccountKeeper: app.AccountKeeper,
BankKeeper: app.BankKeeper,
FeegrantKeeper: app.FeeGrantKeeper,
SignModeHandler: encodingConfig.TxConfig.SignModeHandler(),
SigGasConsumer: sequencerante.SigVerificationGasConsumer,
BlockInteractions: blockInteractions,
},
)
if err != nil {
panic(fmt.Errorf("failed to create AnteHandler: %w", err))
}

app.SetAnteHandler(anteHandler)
// anteHandler, err := sequencerante.NewAnteHandler(
// sequencerante.HandlerOptions{
// AccountKeeper: app.AccountKeeper,
// BankKeeper: app.BankKeeper,
// FeegrantKeeper: app.FeeGrantKeeper,
// SignModeHandler: encodingConfig.TxConfig.SignModeHandler(),
// SigGasConsumer: sequencerante.SigVerificationGasConsumer,
// BlockInteractions: blockInteractions,
// },
// )
// if err != nil {
// panic(fmt.Errorf("failed to create AnteHandler: %w", err))
// }

// app.SetAnteHandler(anteHandler)
app.SetInitChainer(app.InitChainer)
app.SetBeginBlocker(app.BeginBlocker)
app.SetEndBlocker(app.EndBlocker)
app.SetPrepareProposal(sequencerproposal.NewPrepareProposalHandler(&app.SequencerKeeper, app.ArweaveBlocksController, app.txConfig))
app.SetProcessProposal(sequencerproposal.NewProcessProposalHandler(app.txConfig, app.BlockValidator, app.Logger()))
// app.SetPrepareProposal(sequencerproposal.NewPrepareProposalHandler(&app.SequencerKeeper, app.ArweaveBlocksController, app.txConfig))
// app.SetProcessProposal(sequencerproposal.NewProcessProposalHandler(app.txConfig, app.BlockValidator, app.Logger()))

if loadLatest {
if err := app.LoadLatestVersion(); err != nil {
Expand Down

0 comments on commit 00b13de

Please sign in to comment.