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
|
2017-04-20 13:36:38 +04:00 |
Anton Kalyaev
|
873d34157d
|
prevent abuse from peers
|
2017-04-20 13:36:38 +04:00 |
Anton Kalyaev
|
1a59b6a3b4
|
replace repeate timer with simple ticker
no need for repeate timer here (no need for goroutine safety)
|
2017-04-20 13:36:38 +04:00 |
Anton Kalyaev
|
0109f1e524
|
test ensurePeers goroutine
|
2017-04-20 13:36:37 +04:00 |
Anton Kalyaev
|
37d5a2cf3e
|
implement RemovePeer for PEXReactor
|
2017-04-20 13:36:37 +04:00 |
Anton Kalyaev
|
26f661a5dd
|
prefer short names
|
2017-04-20 13:36:37 +04:00 |
Anton Kalyaev
|
057cfb30f1
|
remove unused error
|
2017-04-20 13:36:37 +04:00 |
Anton Kaliaev
|
8bb3a2e1d7
|
persistent peers (Refs #13)
|
2017-04-10 22:47:05 +04:00 |
Ethan Buchman
|
beb3eda438
|
fix addrbook start/stop
|
2017-03-05 22:59:18 -05:00 |
Ethan Buchman
|
88b5c724f2
|
remove public addr book funcs from pex
|
2017-03-04 22:55:42 -05:00 |
Anton Kaliaev
|
65b1756978
|
expose 2 API functions for tendermint#node/node.go
|
2017-03-04 22:44:25 -05:00 |
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
```
|
2017-03-04 22:40:48 -05:00 |
Anton Kalyaev
|
332f7056f7
|
start/stop the book with reactor
Refs https://github.com/tendermint/tendermint/issues/335
|
2017-03-04 22:40:48 -05:00 |
Ethan Buchman
|
dab31d0166
|
version bump to 0.4.0
|
2017-03-03 17:30:38 -05:00 |
rigelrozanski
|
26275ba66c
|
dial seeds error handling
|
2017-03-03 16:42:10 -05:00 |
Jae Kwon
|
44d8e62689
|
Confirm to go-wire new TypeByte behavior
|
2015-12-21 12:55:52 -08:00 |
Jae Kwon
|
4347b91b89
|
Remove wrong comment
|
2015-12-05 09:48:08 -08:00 |
Jae Kwon
|
432a37857d
|
Add RemoteAddr and ListenAddr to NodeInfo; Refactor IPRange logic
|
2015-12-05 09:44:03 -08:00 |
Jae Kwon
|
1c628a97ad
|
Conform to go-wire 1.0
|
2015-11-10 12:29:43 -08:00 |
Jae Kwon
|
abc3a2cc3c
|
initial commit
|
2015-10-25 18:21:51 -07:00 |