aboutsummaryrefslogtreecommitdiffstats
path: root/eth/api_backend.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-09-05 03:35:00 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-09-05 18:34:41 +0800
commitda7d57e07c04dcbb7cc20b35f6606ef3f4c400e3 (patch)
tree01b0266516f76b69ab7d93b0c78e396b3e712600 /eth/api_backend.go
parente7408b5552002df7c3ba6a2351f14c533dfc5a36 (diff)
downloaddexon-da7d57e07c04dcbb7cc20b35f6606ef3f4c400e3.tar.gz
dexon-da7d57e07c04dcbb7cc20b35f6606ef3f4c400e3.tar.zst
dexon-da7d57e07c04dcbb7cc20b35f6606ef3f4c400e3.zip
core: make txpool operate on immutable state
Diffstat (limited to 'eth/api_backend.go')
-rw-r--r--eth/api_backend.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/eth/api_backend.go b/eth/api_backend.go
index abf52326b..19ef79f23 100644
--- a/eth/api_backend.go
+++ b/eth/api_backend.go
@@ -115,10 +115,6 @@ func (b *EthApiBackend) GetEVM(ctx context.Context, msg core.Message, state *sta
return vm.NewEVM(context, state, b.eth.chainConfig, vmCfg), vmError, nil
}
-func (b *EthApiBackend) SubscribeRemovedTxEvent(ch chan<- core.RemovedTransactionEvent) event.Subscription {
- return b.eth.BlockChain().SubscribeRemovedTxEvent(ch)
-}
-
func (b *EthApiBackend) SubscribeRemovedLogsEvent(ch chan<- core.RemovedLogsEvent) event.Subscription {
return b.eth.BlockChain().SubscribeRemovedLogsEvent(ch)
}
@@ -143,10 +139,6 @@ func (b *EthApiBackend) SendTx(ctx context.Context, signedTx *types.Transaction)
return b.eth.txPool.AddLocal(signedTx)
}
-func (b *EthApiBackend) RemoveTx(txHash common.Hash) {
- b.eth.txPool.Remove(txHash)
-}
-
func (b *EthApiBackend) GetPoolTransactions() (types.Transactions, error) {
pending, err := b.eth.txPool.Pending()
if err != nil {