diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-07-10 17:43:23 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-10 17:43:23 +0800 |
commit | 4f7a38001f7137972303421a11d49b0745450a3a (patch) | |
tree | 0a486e90fd8cf7d2ab161610b79a2251483895c0 /les | |
parent | 65f0e905ddda9be97368839b67be5754b33a0eea (diff) | |
parent | 34ec9913f628180d0ace740abfe1362995879c93 (diff) | |
download | go-tangerine-4f7a38001f7137972303421a11d49b0745450a3a.tar go-tangerine-4f7a38001f7137972303421a11d49b0745450a3a.tar.gz go-tangerine-4f7a38001f7137972303421a11d49b0745450a3a.tar.bz2 go-tangerine-4f7a38001f7137972303421a11d49b0745450a3a.tar.lz go-tangerine-4f7a38001f7137972303421a11d49b0745450a3a.tar.xz go-tangerine-4f7a38001f7137972303421a11d49b0745450a3a.tar.zst go-tangerine-4f7a38001f7137972303421a11d49b0745450a3a.zip |
Merge pull request #14737 from holiman/txpool_localaccounts
Txpool localaccounts
Diffstat (limited to 'les')
-rw-r--r-- | les/handler.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/les/handler.go b/les/handler.go index 39045ecbe..f50abaaa3 100644 --- a/les/handler.go +++ b/les/handler.go @@ -87,8 +87,8 @@ type BlockChain interface { } type txPool interface { - // AddTransactions should add the given transactions to the pool. - AddBatch([]*types.Transaction) error + // AddRemotes should add the given transactions to the pool. + AddRemotes([]*types.Transaction) error } type ProtocolManager struct { @@ -801,7 +801,7 @@ func (pm *ProtocolManager) handleMsg(p *peer) error { return errResp(ErrRequestRejected, "") } - if err := pm.txpool.AddBatch(txs); err != nil { + if err := pm.txpool.AddRemotes(txs); err != nil { return errResp(ErrUnexpectedResponse, "msg: %v", err) } |