This PR removes redundant code in file eth/peer.go, the reason is as follows:
When transactions is sent **asynchronously** `peer.AsyncSendTransactions()`, channel `peer.queuedTxs` receives txs in `peer.broadcast()` goroutine as soon as list of transactions is sent to it, and then executes **sync** function `peer.SendTransactions()`.
I therefore don’t think it is necessary to repeatedly add data to the known set in async function.
You can view, comment on, or merge this pull request online at:
— Commit Summary —
* eth: remove redundant code
— File Changes —
M eth/peer.go (5)
— Patch Links —