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@dexon.org>2019-03-12 12:19:09 +0800
commit4a02390bfefc00e3c1b3e70a59f8e2c19f5f1dd8 (patch)
treea11ac5336cff17e8dccf3802ab964feda846d6aa /dex
parentb45aaef1780d9ad225792497752ba4b74cb4f7e9 (diff)
downloaddexon-4a02390bfefc00e3c1b3e70a59f8e2c19f5f1dd8.tar
dexon-4a02390bfefc00e3c1b3e70a59f8e2c19f5f1dd8.tar.gz
dexon-4a02390bfefc00e3c1b3e70a59f8e2c19f5f1dd8.tar.bz2
dexon-4a02390bfefc00e3c1b3e70a59f8e2c19f5f1dd8.tar.lz
dexon-4a02390bfefc00e3c1b3e70a59f8e2c19f5f1dd8.tar.xz
dexon-4a02390bfefc00e3c1b3e70a59f8e2c19f5f1dd8.tar.zst
dexon-4a02390bfefc00e3c1b3e70a59f8e2c19f5f1dd8.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 0c8dfdb8a..c00a54145 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 {