aboutsummaryrefslogtreecommitdiffstats
path: root/dex
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 /dex
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 'dex')
-rw-r--r--dex/api_backend.go4
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 {