diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-07-05 21:51:55 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-07-05 21:51:55 +0800 |
commit | 48ee7f9de7da0455b80ee09f498dbce54127103a (patch) | |
tree | 1e16769e36f34efd5a22283b06e57e551ac948a0 /eth/api_backend.go | |
parent | a633a2d7ea8aadb1d435679449d002de880fab30 (diff) | |
download | dexon-48ee7f9de7da0455b80ee09f498dbce54127103a.tar dexon-48ee7f9de7da0455b80ee09f498dbce54127103a.tar.gz dexon-48ee7f9de7da0455b80ee09f498dbce54127103a.tar.bz2 dexon-48ee7f9de7da0455b80ee09f498dbce54127103a.tar.lz dexon-48ee7f9de7da0455b80ee09f498dbce54127103a.tar.xz dexon-48ee7f9de7da0455b80ee09f498dbce54127103a.tar.zst dexon-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.go | 3 |
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) { |