[ENG-682]: Refactoring auction mempool to ingress normal sdk txs (#50)
This commit is contained in:
+1
-1
@@ -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
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user