diff options
author | Yusup <awklsgrep@gmail.com> | 2018-04-04 18:25:02 +0800 |
---|---|---|
committer | Felix Lange <fjl@users.noreply.github.com> | 2018-04-04 18:25:02 +0800 |
commit | 7aad81f8815084c8ed032705fbaf6d3710e518cf (patch) | |
tree | a79cccc5f2040ac2ec496ca18e7381390c30fbc7 /eth/handler.go | |
parent | 2a4bd55b43df92fe2f83468656ca03199596bceb (diff) | |
download | go-tangerine-7aad81f8815084c8ed032705fbaf6d3710e518cf.tar go-tangerine-7aad81f8815084c8ed032705fbaf6d3710e518cf.tar.gz go-tangerine-7aad81f8815084c8ed032705fbaf6d3710e518cf.tar.bz2 go-tangerine-7aad81f8815084c8ed032705fbaf6d3710e518cf.tar.lz go-tangerine-7aad81f8815084c8ed032705fbaf6d3710e518cf.tar.xz go-tangerine-7aad81f8815084c8ed032705fbaf6d3710e518cf.tar.zst go-tangerine-7aad81f8815084c8ed032705fbaf6d3710e518cf.zip |
eth: fix typos (#16414)
Diffstat (limited to 'eth/handler.go')
-rw-r--r-- | eth/handler.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/eth/handler.go b/eth/handler.go index 3fae0cd00..4069359c9 100644 --- a/eth/handler.go +++ b/eth/handler.go @@ -96,8 +96,8 @@ type ProtocolManager struct { wg sync.WaitGroup } -// NewProtocolManager returns a new ethereum sub protocol manager. The Ethereum sub protocol manages peers capable -// with the ethereum network. +// NewProtocolManager returns a new Ethereum sub protocol manager. The Ethereum sub protocol manages peers capable +// with the Ethereum network. func NewProtocolManager(config *params.ChainConfig, mode downloader.SyncMode, networkId uint64, mux *event.TypeMux, txpool txPool, engine consensus.Engine, blockchain *core.BlockChain, chaindb ethdb.Database) (*ProtocolManager, error) { // Create the protocol manager with the base fields manager := &ProtocolManager{ @@ -498,20 +498,20 @@ func (pm *ProtocolManager) handleMsg(p *peer) error { return errResp(ErrDecode, "msg %v: %v", msg, err) } // Deliver them all to the downloader for queuing - trasactions := make([][]*types.Transaction, len(request)) + transactions := make([][]*types.Transaction, len(request)) uncles := make([][]*types.Header, len(request)) for i, body := range request { - trasactions[i] = body.Transactions + transactions[i] = body.Transactions uncles[i] = body.Uncles } // Filter out any explicitly requested bodies, deliver the rest to the downloader - filter := len(trasactions) > 0 || len(uncles) > 0 + filter := len(transactions) > 0 || len(uncles) > 0 if filter { - trasactions, uncles = pm.fetcher.FilterBodies(p.id, trasactions, uncles, time.Now()) + transactions, uncles = pm.fetcher.FilterBodies(p.id, transactions, uncles, time.Now()) } - if len(trasactions) > 0 || len(uncles) > 0 || !filter { - err := pm.downloader.DeliverBodies(p.id, trasactions, uncles) + if len(transactions) > 0 || len(uncles) > 0 || !filter { + err := pm.downloader.DeliverBodies(p.id, transactions, uncles) if err != nil { log.Debug("Failed to deliver bodies", "err", err) } |