mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-25 01:09:28 +00:00
Add an ownership guard before releasing reserved addresses from legacypool cleanup paths. Address presence in pending/queue and reservation ownership are tracked separately. Cleanup logic can observe an address as queue-empty while the reservation tracker no longer considers that address owned by the current subpool. In that case, a follow-up Release call can attempt to unreserve a non-owned address. Use an optional ownership capability when available, so legacypool only releases reservations it still owns without expanding the exported Reserver interface. Also add a focused regression test that exercises the queue-empty-without-reservation scenario. |
||
|---|---|---|
| .. | ||
| legacypool.go | ||
| legacypool2_test.go | ||
| legacypool_test.go | ||
| list.go | ||
| list_test.go | ||
| noncer.go | ||
| queue.go | ||