OSDN Git Service

Fix conflict (#1595)
authoryahtoo <yahtoo.ma@gmail.com>
Thu, 28 Feb 2019 02:40:21 +0000 (10:40 +0800)
committerPaladz <yzhu101@uottawa.ca>
Thu, 28 Feb 2019 02:40:21 +0000 (10:40 +0800)
* p2p/discv5: fix idx can be negative after uint convert to int(can cause crash) (#1307)

* fix bug for concurrent map access

* get raw block return the tx status (#1546)

* edit config (#1591)

p2p/switch.go

index 5d8018f..62bb71d 100644 (file)
@@ -26,8 +26,8 @@ import (
 const (
        bannedPeerKey       = "BannedPeer"
        defaultBanDuration  = time.Hour * 1
-       minNumOutboundPeers = 3
        logModule           = "p2p"
+       minNumOutboundPeers = 5
 )
 
 //pre-define errors for connecting fail