aboutsummaryrefslogtreecommitdiffstats
path: root/eth/api_backend.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-07-05 21:51:55 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-07-05 21:51:55 +0800
commit48ee7f9de7da0455b80ee09f498dbce54127103a (patch)
tree1e16769e36f34efd5a22283b06e57e551ac948a0 /eth/api_backend.go
parenta633a2d7ea8aadb1d435679449d002de880fab30 (diff)
downloadgo-tangerine-48ee7f9de7da0455b80ee09f498dbce54127103a.tar
go-tangerine-48ee7f9de7da0455b80ee09f498dbce54127103a.tar.gz
go-tangerine-48ee7f9de7da0455b80ee09f498dbce54127103a.tar.bz2
go-tangerine-48ee7f9de7da0455b80ee09f498dbce54127103a.tar.lz
go-tangerine-48ee7f9de7da0455b80ee09f498dbce54127103a.tar.xz
go-tangerine-48ee7f9de7da0455b80ee09f498dbce54127103a.tar.zst
go-tangerine-48ee7f9de7da0455b80ee09f498dbce54127103a.zip
core, eth, les: polish txpool API around local/remote txs
Diffstat (limited to 'eth/api_backend.go')
-rw-r--r--eth/api_backend.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/eth/api_backend.go b/eth/api_backend.go
index 166b5084d..a60b36e65 100644
--- a/eth/api_backend.go
+++ b/eth/api_backend.go
@@ -119,8 +119,7 @@ func (b *EthApiBackend) SendTx(ctx context.Context, signedTx *types.Transaction)
b.eth.txMu.Lock()
defer b.eth.txMu.Unlock()
- b.eth.txPool.SetLocal(signedTx)
- return b.eth.txPool.Add(signedTx)
+ return b.eth.txPool.AddLocal(signedTx)
}
func (b *EthApiBackend) RemoveTx(txHash common.Hash) {