File tree 2 files changed +3
-5
lines changed
2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -21,14 +21,14 @@ package main
21
21
import (
22
22
"bufio"
23
23
"bytes"
24
+ "encoding/json"
24
25
"fmt"
25
26
"io"
26
27
"math/rand"
27
28
"os"
28
29
"os/exec"
29
30
"strings"
30
31
"testing"
31
- "encoding/json"
32
32
33
33
"github.com/ethereum/go-ethereum/internal/reexec"
34
34
)
Original file line number Diff line number Diff line change @@ -923,8 +923,7 @@ func (pool *LegacyPool) addLocals(txs []*types.Transaction) []error {
923
923
// addLocal enqueues a single local transaction into the pool if it is valid. This is
924
924
// a convenience wrapper around addLocals.
925
925
func (pool * LegacyPool ) addLocal (tx * types.Transaction ) error {
926
- errs := pool .addLocals ([]* types.Transaction {tx })
927
- return errs [0 ]
926
+ return pool .addLocals ([]* types.Transaction {tx })[0 ]
928
927
}
929
928
930
929
// addRemotes enqueues a batch of transactions into the pool if they are valid. If the
@@ -939,8 +938,7 @@ func (pool *LegacyPool) addRemotes(txs []*types.Transaction) []error {
939
938
// addRemote enqueues a single transaction into the pool if it is valid. This is a convenience
940
939
// wrapper around addRemotes.
941
940
func (pool * LegacyPool ) addRemote (tx * types.Transaction ) error {
942
- errs := pool .addRemotes ([]* types.Transaction {tx })
943
- return errs [0 ]
941
+ return pool .addRemotes ([]* types.Transaction {tx })[0 ]
944
942
}
945
943
946
944
// addRemotesSync is like addRemotes, but waits for pool reorganization. Tests use this method.
You can’t perform that action at this time.
0 commit comments