From e5138887cb96ad1ec5bdc13a4edefd2d11ae2b99 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Mon, 16 May 2022 21:56:03 -0500 Subject: [PATCH] mempool: Remove agenda from addTransaction. This removes the treasury agenda flag from the unexported addTransaction method since it is no longer used. --- internal/mempool/mempool.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/internal/mempool/mempool.go b/internal/mempool/mempool.go index f7c827d7..d47cc45b 100644 --- a/internal/mempool/mempool.go +++ b/internal/mempool/mempool.go @@ -922,9 +922,7 @@ func (mp *TxPool) findTx(txHash *chainhash.Hash) *mining.TxDesc { // helper for maybeAcceptTransaction and maybeUnstageTransaction. // // This function MUST be called with the mempool lock held (for writes). -func (mp *TxPool) addTransaction(utxoView *blockchain.UtxoViewpoint, - txDesc *TxDesc, isTreasuryEnabled bool) { - +func (mp *TxPool) addTransaction(utxoView *blockchain.UtxoViewpoint, txDesc *TxDesc) { tx := txDesc.Tx txHash := tx.Hash() txType := txDesc.Type @@ -1170,7 +1168,7 @@ func (mp *TxPool) maybeUnstageTransaction(txDesc *TxDesc, isTreasuryEnabled bool if err != nil { return err } - mp.addTransaction(utxoView, txDesc, isTreasuryEnabled) + mp.addTransaction(utxoView, txDesc) } return nil } @@ -1802,7 +1800,7 @@ func (mp *TxPool) maybeAcceptTransaction(tx *dcrutil.Tx, isNew, rateLimit, } // Add to transaction pool. - mp.addTransaction(utxoView, txDesc, isTreasuryEnabled) + mp.addTransaction(utxoView, txDesc) // A regular transaction entering the mempool causes // mempool tickets that redeem it to move to the stage pool.