From 7fb10bc90e75d3d9bde94a90889d1366d90847e9 Mon Sep 17 00:00:00 2001 From: lightclient Date: Wed, 9 Apr 2025 12:03:59 -0600 Subject: [PATCH] core/txpool: clear doc typo --- core/txpool/txpool.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/txpool/txpool.go b/core/txpool/txpool.go index 3c3aa2fefe..03a637fe52 100644 --- a/core/txpool/txpool.go +++ b/core/txpool/txpool.go @@ -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