aboutsummaryrefslogtreecommitdiffstats
path: root/les
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-03-12 12:19:09 +0800
commit4a02390bfefc00e3c1b3e70a59f8e2c19f5f1dd8 (patch)
treea11ac5336cff17e8dccf3802ab964feda846d6aa /les
parentb45aaef1780d9ad225792497752ba4b74cb4f7e9 (diff)
downloaddexon-4a02390bfefc00e3c1b3e70a59f8e2c19f5f1dd8.tar.gz
dexon-4a02390bfefc00e3c1b3e70a59f8e2c19f5f1dd8.tar.zst
dexon-4a02390bfefc00e3c1b3e70a59f8e2c19f5f1dd8.zip
api: allow sending batch of raw transactions
Diffstat (limited to 'les')
-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 ab63be7d8..770aa8515 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)
}