Ethan Buchman
|
08f84cd712
|
a little more moving around
|
7 years ago |
Ethan Buchman
|
7667e11973
|
remove RemoteAddr from NodeInfo
|
7 years ago |
Ethan Buchman
|
53a5498fc5
|
more fixes from review
|
7 years ago |
Ethan Buchman
|
e4d52401cf
|
some fixes from review
|
7 years ago |
Anton Kaliaev
|
075ae1e301
|
minimal test for dialing seeds in pex reactor
|
7 years ago |
Anton Kaliaev
|
705d51aa42
|
move dialSeedsIfAddrBookIsEmptyOrPEXFailedToConnect into PEX reactor
|
7 years ago |
Anton Kaliaev
|
e4897b7bdd
|
rename manual peers to persistent peers
|
7 years ago |
Anton Kaliaev
|
28fc15028a
|
distinguish between seeds and manual peers in the config/flags
- we only use seeds if we can’t connect to peers in the addrbook.
- we always connect to nodes given in config/flags
Refs #864
|
7 years ago |
Ethan Buchman
|
7d35500e6b
|
p2p: add ID to NetAddress and use for AddrBook
|
7 years ago |
Ethan Buchman
|
a17105fd46
|
p2p: peer.Key -> peer.ID
|
7 years ago |
Ethan Buchman
|
0ec7909ec3
|
more logging in p2p and consensus
|
7 years ago |
Ethan Buchman
|
78a682e4b6
|
blockchain: test fixes
|
7 years ago |
Ethan Buchman
|
462b755a60
|
activate PEX reactor by default
|
7 years ago |
Ethan Buchman
|
a37c1143ca
|
adr: update 007 trust metric usage
|
7 years ago |
Anton Kaliaev
|
691e266bef
|
ignore ErrAlreadyStarted when starting addrbook in PEXReactor
|
7 years ago |
Anton Kaliaev
|
69b5da766c
|
service#Start, service#Stop signatures were changed
See https://github.com/tendermint/tmlibs/issues/45
|
7 years ago |
Ethan Buchman
|
9529f12c28
|
more linting
|
7 years ago |
Zach Ramsay
|
15651a931e
|
linting errors: tackle p2p package
|
7 years ago |
Zach Ramsay
|
46ccbcbff6
|
linting: apply 'gofmt -s -w' throughout
|
7 years ago |
Ethan Buchman
|
c4b695f78d
|
minor fixes from review
|
7 years ago |
Ethan Buchman
|
be1a16a601
|
p2p/pex: simplify ensurePeers
|
7 years ago |
Ethan Buchman
|
c931279960
|
p2p: some fixes re @odeke-em issues #813,#816,#817
|
7 years ago |
Ethan Buchman
|
e01986e2b3
|
p2p: update readme, some minor things
|
7 years ago |
Ethan Buchman
|
0bbf38141a
|
blockchain/pool: some comments and small changes
|
7 years ago |
Ethan Buchman
|
aea8629272
|
peer interface
|
7 years ago |
Anton Kaliaev
|
b4ece65726
|
standardize key for errors (should be "err")
|
8 years ago |
zramsay
|
cf31f8d06f
|
core: apply megacheck vet tool (unused, gosimple, staticcheck)
|
8 years ago |
Anton Kaliaev
|
f803544195
|
new logging
|
8 years ago |
Ethan Buchman
|
23a6a6f8fc
|
move into p2p package
|
8 years ago |
Ethan Buchman
|
eaeb547938
|
use tmlibs
|
8 years ago |
Ethan Buchman
|
75bad132fc
|
msgCountByPeer is a CMap
|
8 years ago |
Ethan Buchman
|
391c738959
|
update comment about outbound peers and addrbook
|
8 years ago |
Anton Kaliaev
|
17ec70fc09
|
revert 2710873
|
8 years ago |
Anton Kaliaev
|
9ce71013df
|
revert e448199
|
8 years ago |
Anton Kaliaev
|
0277e52bd5
|
fix merge
|
8 years ago |
Anton Kaliaev
|
cf18bf2966
|
add public RemoveAddress API
after discussion with @ebuchman (https://github.com/tendermint/go-p2p/pull/10#discussion_r96471729)
|
8 years ago |
Anton Kaliaev
|
324293f4cb
|
note on preventing abuse [ci skip]
|
8 years ago |
Anton Kaliaev
|
52d9cf080e
|
make GoLint happy
|
8 years ago |
Anton Kalyaev
|
07e7b98c70
|
improve ensurePeers routine
optimizations:
- if we move peer to the old bucket as soon as connected and pick only
from new group, we can skip alreadyConnected check
|
8 years ago |
Anton Kalyaev
|
873d34157d
|
prevent abuse from peers
|
8 years ago |
Anton Kalyaev
|
1a59b6a3b4
|
replace repeate timer with simple ticker
no need for repeate timer here (no need for goroutine safety)
|
8 years ago |
Anton Kalyaev
|
0109f1e524
|
test ensurePeers goroutine
|
8 years ago |
Anton Kalyaev
|
37d5a2cf3e
|
implement RemovePeer for PEXReactor
|
8 years ago |
Anton Kalyaev
|
26f661a5dd
|
prefer short names
|
8 years ago |
Anton Kalyaev
|
057cfb30f1
|
remove unused error
|
8 years ago |
Anton Kaliaev
|
8bb3a2e1d7
|
persistent peers (Refs #13)
|
8 years ago |
Ethan Buchman
|
beb3eda438
|
fix addrbook start/stop
|
8 years ago |
Ethan Buchman
|
88b5c724f2
|
remove public addr book funcs from pex
|
8 years ago |
Anton Kaliaev
|
65b1756978
|
expose 2 API functions for tendermint#node/node.go
|
8 years ago |
Anton Kaliaev
|
2773410de4
|
prevent nil addr
Error:
```
Error: runtime error: invalid memoryaddress or nil pointer dereference\nStack:
goroutine 549 [running]:\nruntime/debug.Stack(0x0, 0x0,
0x0)\n\t/usr/local/go/src/runtime/debug/stack.go:24
+0x80\ngithub.com/tendermint/tendermint/vendor/github.com/tendermint/go-p2p.(*MConnection)._recover(0xc821723b00)\n\t/go/src/github.com/tendermint/tendermint/vendor/github.com/tendermint/go-p2p/connection.go:173
+0x53\npanic(0xbe1500, 0xc820012080)\n\t/usr/local/go/src/runtime/panic.go:443
+0x4e9\ngithub.com/tendermint/tendermint/vendor/github.com/tendermint/go-p2p.(*NetAddress).Valid(0x0,
0x0)\n\t/go/src/github.com/tendermint/tendermint/vendor/github.com/tendermint/go-p2p/netaddress.go:125
+0x1c\ngithub.com/tendermint/tendermint/vendor/github.com/tendermint/go-p2p.(*NetAddress).Routable(0x0,
0xc8217bb740)\n\t/go/src/github.com/tendermint/tendermint/vendor/github.com/tendermint/go-p2p/netaddress.go:117
+0x25\ngithub.com/tendermint/tendermint/vendor/github.com/tendermint/go-p2p.(*AddrBook).addAddress(0xc820108380,
0x0,
0xc821739590)\n\t/go/src/github.com/tendermint/tendermint/vendor/github.com/tendermint/go-p2p/addrbook.go:524
+0x45\ngithub.com/tendermint/tendermint/vendor/github.com/tendermint/go-p2p.(*AddrBook).AddAddress(0xc820108380,
0x0,
0xc821739590)\n\t/go/src/github.com/tendermint/tendermint/vendor/github.com/tendermint/go-p2p/addrbook.go:160
+0x286\ngithub.com/tendermint/tendermint/vendor/github.com/tendermint/go-p2p.(*PEXReactor).Receive(0xc82000be60,
0xc820149f00, 0xc8218163f0, 0xc82184e000, 0x5b,
0x1000)\n\t/go/src/github.com/tendermint/tendermint/vendor/github.com/tendermint/go-p2p/pex_reactor.go:109
+0x457\ngithub.com/tendermint/tendermint/vendor/github.com/tendermint/go-p2p.newPeer.func1(0xc82011d500,
0xc82184e000, 0x5b,
0x1000)\n\t/go/src/github.com/tendermint/tendermint/vendor/github.com/tendermint/go-p2p/peer.go:58
+0x202\ngithub.com/tendermint/tendermint/vendor/github.com/tendermint/go-p2p.(*MConnection).recvRoutine(0xc821723b00)\n\t/go/src/github.com/tendermint/tendermint/vendor/github.com/tendermint/go-p2p/connection.go:439
+0x1177\ncreated by
github.com/tendermint/tendermint/vendor/github.com/tendermint/go-p2p.(*MConnection).OnStart\n\t/go/src/github.com/tendermint/tendermint/vendor/github.com/tendermint/go-p2p/connection.go:138
+0x1a1\n
```
|
8 years ago |