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 /dex | |
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 'dex')
-rw-r--r-- | dex/api_backend.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/dex/api_backend.go b/dex/api_backend.go index 9929b062d..80fe1e39b 100644 --- a/dex/api_backend.go +++ b/dex/api_backend.go @@ -154,6 +154,10 @@ func (b *DexAPIBackend) SendTx(ctx context.Context, signedTx *types.Transaction) return b.dex.txPool.AddLocal(signedTx) } +func (b *DexAPIBackend) SendTxs(ctx context.Context, signedTxs []*types.Transaction) []error { + return b.dex.txPool.AddLocals(signedTxs) +} + func (b *DexAPIBackend) GetPoolTransactions() (types.Transactions, error) { pending, err := b.dex.txPool.Pending() if err != nil { |