feat(BB): Decoding Txs before ProcessLane + IgnoreList (#170)

This commit is contained in:
David Terpay
2023-06-08 20:23:20 +00:00
committed by GitHub
parent 38f2ae20f6
commit 3d505edf31
11 changed files with 113 additions and 82 deletions
+12 -1
View File
@@ -295,7 +295,17 @@ func New(
)
// Default lane accepts all other transactions.
defaultLane := base.NewDefaultLane(config)
defaultConfig := blockbuster.BaseLaneConfig{
Logger: app.Logger(),
TxEncoder: app.txConfig.TxEncoder(),
TxDecoder: app.txConfig.TxDecoder(),
MaxBlockSpace: sdk.ZeroDec(),
IgnoreList: []blockbuster.Lane{
tobLane,
freeLane,
},
}
defaultLane := base.NewDefaultLane(defaultConfig)
lanes := []blockbuster.Lane{
tobLane,
freeLane,
@@ -333,6 +343,7 @@ func New(
// Set the proposal handlers on the BaseApp along with the custom antehandler.
proposalHandlers := abci.NewProposalHandler(
app.Logger(),
app.txConfig.TxDecoder(),
mempool,
)
app.App.SetPrepareProposal(proposalHandlers.PrepareProposalHandler())