From 7696201550cc1ad474f6f5ee3463b9c0e13b0067 Mon Sep 17 00:00:00 2001 From: MariusVanDerWijden Date: Mon, 2 Feb 2026 05:47:17 +0100 Subject: [PATCH] core/txpool: better comment --- core/txpool/legacypool/legacypool.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/txpool/legacypool/legacypool.go b/core/txpool/legacypool/legacypool.go index f9d9cc3ebe..6822b69cd2 100644 --- a/core/txpool/legacypool/legacypool.go +++ b/core/txpool/legacypool/legacypool.go @@ -948,7 +948,9 @@ func (pool *LegacyPool) Add(txs []*types.Transaction, sync bool) []error { // addTxsLocked attempts to queue a batch of transactions if they are valid. // The transaction pool lock must be held. -// Returns the error for each tx, and the set of accounts that might became promotable. +// Sets the error for each tx, and the set of accounts that might became promotable. +// We only try to add txs that have no error set in the errs slice. +// If adding the transaction returns an error, we set the error in the errs slice. // Requires len(txs) == len(errs). func (pool *LegacyPool) addTxsLocked(txs []*types.Transaction, errs []error) *accountSet { var (