feat: Blockbuster MVP + TOB Lane (#145)

This commit is contained in:
Aleksandr Bezobchuk
2023-05-30 20:03:48 +00:00
committed by GitHub
parent 63a98d756f
commit 957780d934
8 changed files with 544 additions and 8 deletions
-1
View File
@@ -242,7 +242,6 @@ func (h *ProposalHandler) ProcessProposalHandler() sdk.ProcessProposalHandler {
}
}
}
}
return abci.ResponseProcessProposal{Status: abci.ResponseProcessProposal_ACCEPT}
+2 -6
View File
@@ -163,12 +163,8 @@ func (handler *CheckTxHandler) ValidateBidTx(ctx sdk.Context, bidTx sdk.Tx, bidI
return gasInfo, fmt.Errorf("invalid bid tx; failed to decode bundled tx: %w", err)
}
bidInfo, err := handler.mempool.GetAuctionBidInfo(bundledTx)
if err != nil {
return gasInfo, fmt.Errorf("invalid bid tx; failed to get auction bid info: %w", err)
}
// Bid txs cannot be included in bundled txs.
// bid txs cannot be included in bundled txs
bidInfo, _ := handler.mempool.GetAuctionBidInfo(bundledTx)
if bidInfo != nil {
return gasInfo, fmt.Errorf("invalid bid tx; bundled tx cannot be a bid tx")
}