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 /eth | |
parent | b45aaef1780d9ad225792497752ba4b74cb4f7e9 (diff) | |
download | dexon-4a02390bfefc00e3c1b3e70a59f8e2c19f5f1dd8.tar.gz dexon-4a02390bfefc00e3c1b3e70a59f8e2c19f5f1dd8.tar.zst dexon-4a02390bfefc00e3c1b3e70a59f8e2c19f5f1dd8.zip |
api: allow sending batch of raw transactions
Diffstat (limited to 'eth')
-rw-r--r-- | eth/api_backend.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/eth/api_backend.go b/eth/api_backend.go index b8a525f02..32faea206 100644 --- a/eth/api_backend.go +++ b/eth/api_backend.go @@ -157,6 +157,10 @@ func (b *EthAPIBackend) SendTx(ctx context.Context, signedTx *types.Transaction) return b.eth.txPool.AddLocal(signedTx) } +func (b *EthAPIBackend) SendTxs(ctx context.Context, signedTxs []*types.Transaction) []error { + return b.eth.txPool.AddLocals(signedTxs) +} + func (b *EthAPIBackend) GetPoolTransactions() (types.Transactions, error) { pending, err := b.eth.txPool.Pending() if err != nil { |