diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-11-23 12:12:10 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-03-12 12:19:09 +0800 |
commit | 4a02390bfefc00e3c1b3e70a59f8e2c19f5f1dd8 (patch) | |
tree | a11ac5336cff17e8dccf3802ab964feda846d6aa /dex | |
parent | b45aaef1780d9ad225792497752ba4b74cb4f7e9 (diff) | |
download | dexon-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.go | 4 |
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 { |