OSDN Git Service
(root)
/
bytom
/
bytom.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63ee912
)
Fix conflict (#1595)
author
yahtoo
<yahtoo.ma@gmail.com>
Thu, 28 Feb 2019 02:40:21 +0000
(10:40 +0800)
committer
Paladz
<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
patch
|
blob
|
history
diff --git
a/p2p/switch.go
b/p2p/switch.go
index
5d8018f
..
62bb71d
100644
(file)
--- a/
p2p/switch.go
+++ b/
p2p/switch.go
@@
-26,8
+26,8
@@
import (
const (
bannedPeerKey = "BannedPeer"
defaultBanDuration = time.Hour * 1
- minNumOutboundPeers = 3
logModule = "p2p"
+ minNumOutboundPeers = 5
)
//pre-define errors for connecting fail