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@byzantine-lab.io>2019-06-12 17:27:18 +0800
commit41c03e07c6ad09b30c336c929442087618fefd66 (patch)
treefb685c2f7411c03504b9f32dbf66e1effc644fbb /les
parentfc2df4ef1c189accd7a4c4ed90d8e3562b5d9e60 (diff)
downloadgo-tangerine-41c03e07c6ad09b30c336c929442087618fefd66.tar
go-tangerine-41c03e07c6ad09b30c336c929442087618fefd66.tar.gz
go-tangerine-41c03e07c6ad09b30c336c929442087618fefd66.tar.bz2
go-tangerine-41c03e07c6ad09b30c336c929442087618fefd66.tar.lz
go-tangerine-41c03e07c6ad09b30c336c929442087618fefd66.tar.xz
go-tangerine-41c03e07c6ad09b30c336c929442087618fefd66.tar.zst
go-tangerine-41c03e07c6ad09b30c336c929442087618fefd66.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 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)
}