core/txpool: clear doc typo

This commit is contained in:
lightclient 2025-04-09 12:03:59 -06:00
parent 66883c13e3
commit 7fb10bc90e
No known key found for this signature in database
GPG key ID: 657913021EF45A6A

View file

@ -579,9 +579,9 @@ func (p *TxPool) Sync() error {
// Clear removes all tracked txs from the subpools. // Clear removes all tracked txs from the subpools.
// //
// Note, this method invokes Sync() is only used for testing and is susceptible // Note, this method invokes Sync() and is only used for testing, because it is
// to DoS vectors. In production code, the pool is meant to reset on a separate // susceptible to DoS vectors. In production code, the pool is meant to reset on
// thread. // a separate thread.
func (p *TxPool) Clear() { func (p *TxPool) Clear() {
// Invoke Sync to ensure that txs pending addition don't get added to the pool after // Invoke Sync to ensure that txs pending addition don't get added to the pool after
// the subpools are subsequently cleared // the subpools are subsequently cleared