aboutsummaryrefslogtreecommitdiffstats
path: root/les/api_backend.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-11-23 12:12:10 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:54 +0800
commite79dcc385d37eefb121f675d3800dbfe59b515c7 (patch)
tree220cd446864dcca990d1adeafd23fe7e301ced7e /les/api_backend.go
parentc51c2a240cd3f01bf8bdb6a1644a902b2335b2aa (diff)
downloaddexon-e79dcc385d37eefb121f675d3800dbfe59b515c7.tar
dexon-e79dcc385d37eefb121f675d3800dbfe59b515c7.tar.gz
dexon-e79dcc385d37eefb121f675d3800dbfe59b515c7.tar.bz2
dexon-e79dcc385d37eefb121f675d3800dbfe59b515c7.tar.lz
dexon-e79dcc385d37eefb121f675d3800dbfe59b515c7.tar.xz
dexon-e79dcc385d37eefb121f675d3800dbfe59b515c7.tar.zst
dexon-e79dcc385d37eefb121f675d3800dbfe59b515c7.zip
api: allow sending batch of raw transactions
Diffstat (limited to 'les/api_backend.go')
-rw-r--r--les/api_backend.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/les/api_backend.go b/les/api_backend.go
index 148b29c0b..f69e67c60 100644
--- a/les/api_backend.go
+++ b/les/api_backend.go
@@ -115,6 +115,11 @@ func (b *LesApiBackend) SendTx(ctx context.Context, signedTx *types.Transaction)
return b.eth.txPool.Add(ctx, signedTx)
}
+func (b *LesApiBackend) SendTxs(ctx context.Context, signedTxs []*types.Transaction) []error {
+ b.eth.txPool.AddBatch(ctx, signedTxs)
+ return nil
+}
+
func (b *LesApiBackend) RemoveTx(txHash common.Hash) {
b.eth.txPool.RemoveTx(txHash)
}