mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 07:06:42 +00:00
core/txpool/blobpool: adjust comments in blobpool
This commit is contained in:
parent
6fd341371b
commit
651db00cdf
1 changed files with 2 additions and 1 deletions
|
|
@ -1124,11 +1124,12 @@ func (p *BlobPool) checkDelegationLimit(tx *types.Transaction) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Allow a single in-flight pending transaction.
|
||||||
pending := p.index[from]
|
pending := p.index[from]
|
||||||
if len(pending) == 0 {
|
if len(pending) == 0 {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
// Transaction replacement is supported
|
// If account already has a pending transaction, allow replacement only.
|
||||||
if len(pending) == 1 && pending[0].nonce == tx.Nonce() {
|
if len(pending) == 1 && pending[0].nonce == tx.Nonce() {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue