core, eth, les: polish txpool API around local/remote txs

This commit is contained in:
Péter Szilágyi
2017-07-05 16:51:55 +03:00
parent a633a2d7ea
commit 48ee7f9de7
9 changed files with 153 additions and 149 deletions

View File

@ -94,9 +94,9 @@ type testTxPool struct {
lock sync.RWMutex // Protects the transaction pool
}
// AddBatch appends a batch of transactions to the pool, and notifies any
// AddRemotes appends a batch of transactions to the pool, and notifies any
// listeners if the addition channel is non nil
func (p *testTxPool) AddBatch(txs []*types.Transaction) error {
func (p *testTxPool) AddRemotes(txs []*types.Transaction) error {
p.lock.Lock()
defer p.lock.Unlock()