mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 19:30:44 +00:00
core/txpool: better comment
This commit is contained in:
parent
ad1d943c7d
commit
7696201550
1 changed files with 3 additions and 1 deletions
|
|
@ -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.
|
// addTxsLocked attempts to queue a batch of transactions if they are valid.
|
||||||
// The transaction pool lock must be held.
|
// 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).
|
// Requires len(txs) == len(errs).
|
||||||
func (pool *LegacyPool) addTxsLocked(txs []*types.Transaction, errs []error) *accountSet {
|
func (pool *LegacyPool) addTxsLocked(txs []*types.Transaction, errs []error) *accountSet {
|
||||||
var (
|
var (
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue