[ENG-682]: Refactoring auction mempool to ingress normal sdk txs (#50)

This commit is contained in:
David Terpay
2023-04-06 11:13:44 -04:00
committed by GitHub
parent d3a198a710
commit cc3012a129
6 changed files with 19 additions and 62 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ func (h *ProposalHandler) PrepareProposalHandler() sdk.PrepareProposalHandler {
// bundled transactions are valid.
selectBidTxLoop:
for ; bidTxIterator != nil; bidTxIterator = bidTxIterator.Next() {
tmpBidTx := mempool.UnwrapBidTx(bidTxIterator.Tx())
tmpBidTx := bidTxIterator.Tx()
bidTxBz, err := h.txVerifier.PrepareProposalVerifyTx(tmpBidTx)
if err != nil {
+2 -2
View File
@@ -234,7 +234,7 @@ func (suite *ABCITestSuite) exportMempool(exportRefTxs bool) [][]byte {
auctionIterator := suite.mempool.AuctionBidSelect(suite.ctx)
for ; auctionIterator != nil; auctionIterator = auctionIterator.Next() {
auctionTx := auctionIterator.Tx().(*mempool.WrappedBidTx).Tx
auctionTx := auctionIterator.Tx()
txBz, err := suite.encodingConfig.TxConfig.TxEncoder()(auctionTx)
suite.Require().NoError(err)
@@ -771,6 +771,6 @@ func (suite *ABCITestSuite) isTopBidValid() bool {
}
// check if the top bid is valid
_, err := suite.executeAnteHandler(iterator.Tx().(*mempool.WrappedBidTx).Tx)
_, err := suite.executeAnteHandler(iterator.Tx())
return err == nil
}