@@ -61,7 +61,6 @@ type TransactionPool struct {
6161
6262 mu deadlock.Mutex
6363 cond sync.Cond
64- expiredTxCount map [basics.Round ]int
6564 pendingBlockEvaluator BlockEvaluator
6665 evalTracer logic.EvalTracer
6766 numPendingWholeBlocks basics.Round
@@ -131,7 +130,6 @@ func MakeTransactionPool(ledger *ledger.Ledger, cfg config.Local, log logging.Lo
131130 pool := TransactionPool {
132131 pendingTxids : make (map [transactions.Txid ]transactions.SignedTxn ),
133132 rememberedTxids : make (map [transactions.Txid ]transactions.SignedTxn ),
134- expiredTxCount : make (map [basics.Round ]int ),
135133 ledger : ledger ,
136134 statusCache : makeStatusCache (cfg .TxPoolSize ),
137135 logProcessBlockStats : cfg .EnableProcessBlockStats ,
@@ -195,7 +193,6 @@ func (pool *TransactionPool) Reset() {
195193 pool .pendingTxGroups = nil
196194 pool .rememberedTxids = make (map [transactions.Txid ]transactions.SignedTxn )
197195 pool .rememberedTxGroups = nil
198- pool .expiredTxCount = make (map [basics.Round ]int )
199196 pool .numPendingWholeBlocks = 0
200197 pool .pendingBlockEvaluator = nil
201198 pool .statusCache .reset ()
@@ -209,15 +206,6 @@ func (pool *TransactionPool) getVotingAccountsForRound(rnd basics.Round) []basic
209206 return pool .vac .VotingAccountsForRound (rnd )
210207}
211208
212- // NumExpired returns the number of transactions that expired at the
213- // end of a round (only meaningful if cleanup has been called for that
214- // round).
215- func (pool * TransactionPool ) NumExpired (round basics.Round ) int {
216- pool .mu .Lock ()
217- defer pool .mu .Unlock ()
218- return pool .expiredTxCount [round ]
219- }
220-
221209// PendingTxIDs return the IDs of all pending transactions.
222210func (pool * TransactionPool ) PendingTxIDs () []transactions.Txid {
223211 pool .pendingMu .RLock ()
@@ -586,10 +574,6 @@ func (pool *TransactionPool) OnNewBlock(block bookkeeping.Block, delta ledgercor
586574 stats .KnownCommittedCount = knownCommitted
587575 stats .UnknownCommittedCount = unknownCommitted
588576
589- proto := config .Consensus [block .CurrentProtocol ]
590- pool .expiredTxCount [block .Round ()] = int (stats .ExpiredCount )
591- delete (pool .expiredTxCount , block .Round ()- expiredHistory * basics .Round (proto .MaxTxnLife ))
592-
593577 if pool .logProcessBlockStats {
594578 var details struct {
595579 Round uint64
0 commit comments