diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-11-23 12:12:10 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 13:49:57 +0800 |
commit | 2b6b49745df1dd6a136a3008861a04b16b76995b (patch) | |
tree | 06509d29f3840d98144d5a111397d192da7d99c6 /les | |
parent | 52efce84f0fd1c0826fdb59c960e6b1f7bf4fee1 (diff) | |
download | dexon-2b6b49745df1dd6a136a3008861a04b16b76995b.tar dexon-2b6b49745df1dd6a136a3008861a04b16b76995b.tar.gz dexon-2b6b49745df1dd6a136a3008861a04b16b76995b.tar.bz2 dexon-2b6b49745df1dd6a136a3008861a04b16b76995b.tar.lz dexon-2b6b49745df1dd6a136a3008861a04b16b76995b.tar.xz dexon-2b6b49745df1dd6a136a3008861a04b16b76995b.tar.zst dexon-2b6b49745df1dd6a136a3008861a04b16b76995b.zip |
api: allow sending batch of raw transactions
Diffstat (limited to 'les')
-rw-r--r-- | les/api_backend.go | 5 |
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) } |