[ethereum/go-ethereum] eth: remove redundant code (#16972)

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:

https://github.com/ethereum/go-ethereum/pull/16972

— Commit Summary —

* eth: remove redundant code

— File Changes —

M eth/peer.go (5)

— Patch Links —

https://github.com/ethereum/go-ethereum/pull/16972.patch
https://github.com/ethereum/go-ethereum/pull/16972.diff

This post was last modified on June 13, 2018, 3:54 pm