test: requestPromoteExecutables after every enqueue for testing

This commit is contained in:
emailtovamos 2024-09-06 12:20:36 +01:00
parent 706a24eb2c
commit 0e61543954

@ -966,6 +966,9 @@ func (pool *LegacyPool) addToPool12OrPool3(tx *types.Transaction, from common.Ad
if err != nil { if err != nil {
return false, err return false, err
} }
dirty := newAccountSet(pool.signer)
dirty.addTx(tx)
<-pool.requestPromoteExecutables(dirty)
log.Trace("Pooled new executable transaction", "hash", tx.Hash(), "from", from, "to", tx.To()) log.Trace("Pooled new executable transaction", "hash", tx.Hash(), "from", from, "to", tx.To())
// Successful promotion, bump the heartbeat // Successful promotion, bump the heartbeat
@ -980,6 +983,9 @@ func (pool *LegacyPool) addToPool12OrPool3(tx *types.Transaction, from common.Ad
if err != nil { if err != nil {
return false, err return false, err
} }
dirty := newAccountSet(pool.signer)
dirty.addTx(tx)
<-pool.requestPromoteExecutables(dirty)
log.Trace("Pooled new executable transaction", "hash", tx.Hash(), "from", from, "to", tx.To()) log.Trace("Pooled new executable transaction", "hash", tx.Hash(), "from", from, "to", tx.To())
// Successful promotion, bump the heartbeat // Successful promotion, bump the heartbeat