aboutsummaryrefslogtreecommitdiffstats
path: root/eth/api_backend.go
diff options
context:
space:
mode:
Diffstat (limited to 'eth/api_backend.go')
-rw-r--r--eth/api_backend.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/eth/api_backend.go b/eth/api_backend.go
index 1c27b5d5c..696b6c64a 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 {