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>2018-12-19 20:54:27 +0800
commit2d6f583571100815ad546fe14e2a18548dee7a80 (patch)
treee30822995a68b37b46eb4e46edba4c86667a37b8 /les/api_backend.go
parent407aeb0d06d7abeb5e0e4e35ce40264b9d7f737a (diff)
downloaddexon-2d6f583571100815ad546fe14e2a18548dee7a80.tar
dexon-2d6f583571100815ad546fe14e2a18548dee7a80.tar.gz
dexon-2d6f583571100815ad546fe14e2a18548dee7a80.tar.bz2
dexon-2d6f583571100815ad546fe14e2a18548dee7a80.tar.lz
dexon-2d6f583571100815ad546fe14e2a18548dee7a80.tar.xz
dexon-2d6f583571100815ad546fe14e2a18548dee7a80.tar.zst
dexon-2d6f583571100815ad546fe14e2a18548dee7a80.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 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)
}