mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 14:46:42 +00:00
core/txpool: clear doc typo
This commit is contained in:
parent
66883c13e3
commit
7fb10bc90e
1 changed files with 3 additions and 3 deletions
|
|
@ -579,9 +579,9 @@ func (p *TxPool) Sync() error {
|
|||
|
||||
// Clear removes all tracked txs from the subpools.
|
||||
//
|
||||
// Note, this method invokes Sync() is only used for testing and is susceptible
|
||||
// to DoS vectors. In production code, the pool is meant to reset on a separate
|
||||
// thread.
|
||||
// Note, this method invokes Sync() and is only used for testing, because it is
|
||||
// susceptible to DoS vectors. In production code, the pool is meant to reset on
|
||||
// a separate thread.
|
||||
func (p *TxPool) Clear() {
|
||||
// Invoke Sync to ensure that txs pending addition don't get added to the pool after
|
||||
// the subpools are subsequently cleared
|
||||
|
|
|
|||
Loading…
Reference in a new issue