wire "github.com/tendermint/go-wire"
cmn "github.com/tendermint/tmlibs/common"
- "github.com/bytom/errors"
+ "github.com/bytom/errors"
)
const (
// Dial picked addresses
for _, item := range toDial {
- _, err := r.Switch.DialPeerWithAddress(item, false)
- if err != nil {
+ if _, err := r.Switch.DialPeerWithAddress(item, false); err != nil {
r.book.MarkAttempt(item)
}
}
"net"
"sync"
"time"
+ "strings"
log "github.com/sirupsen/logrus"
crypto "github.com/tendermint/go-crypto"
cmn "github.com/tendermint/tmlibs/common"
dbm "github.com/tendermint/tmlibs/db"
- "strings"
-
cfg "github.com/bytom/config"
"github.com/bytom/errors"
"github.com/bytom/p2p/trust"