Anton Kaliaev
|
5eeaffd38e
|
do not create file, just temp dir
|
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
|
47df1fb7d4
|
test PEXReactor#Receive
|
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
|
3af7c67757
|
add Dockerfile
|
8 years ago |
Anton Kalyaev
|
26f661a5dd
|
prefer short names
|
8 years ago |
Anton Kalyaev
|
057cfb30f1
|
remove unused error
|
8 years ago |
Ethan Buchman
|
e05052b079
|
update glide
|
8 years ago |
Ethan Buchman
|
7d5b62b61f
|
CHANGELOG and version bump
|
8 years ago |
Ethan Buchman
|
e6b7e66bbe
|
Merge pull request #23 from tendermint/more-tests
More tests
|
8 years ago |
Anton Kaliaev
|
2ac69176e1
|
add a comment for MConnection#CanSend
also add a note to TestMConnectionSend
|
8 years ago |
Anton Kaliaev
|
fbedb426ce
|
tests for NetAddress
|
8 years ago |
Anton Kaliaev
|
6dc113aa80
|
[netaddress] panic only when normal run
|
8 years ago |
Anton Kaliaev
|
ebe23f1379
|
refactor MConnection#sendBytes
|
8 years ago |
Anton Kaliaev
|
06d219db8e
|
test peer with no auth enc
|
8 years ago |
Anton Kaliaev
|
1d01f6af98
|
2 kinds of peers: outbound and inbound
|
8 years ago |
Anton Kaliaev
|
715b8c629f
|
use the peer struct to simulate remote peer
|
8 years ago |
Anton Kaliaev
|
a63e1bb2dc
|
fix possible panic
|
8 years ago |
Anton Kaliaev
|
5965578c56
|
[fuzz] only one way to set config variables
|
8 years ago |
Anton Kaliaev
|
7dcc3dbcd1
|
test peer
|
8 years ago |
Ethan Buchman
|
c39e001a95
|
Merge pull request #22 from tendermint/persistent
fix closing conn
|
8 years ago |
Ethan Buchman
|
8067cdb5f2
|
fix closing conn
|
8 years ago |
Ethan Buchman
|
ebd3929c0d
|
Merge pull request #18 from tendermint/13-reconnect-to-seeds
persistent peers (Refs 13)
|
8 years ago |
Ethan Buchman
|
9a1a6c56b4
|
dont expose makePersistent
|
8 years ago |
Ethan Buchman
|
b6f744c732
|
fix AddPeerWithConnection
|
8 years ago |
Ethan Buchman
|
a9bb6734e7
|
SetDeadline for authEnc. Stop peer if Add fails
|
8 years ago |
Anton Kaliaev
|
8bb3a2e1d7
|
persistent peers (Refs #13)
|
8 years ago |
Anton Kaliaev
|
f88d56b2f8
|
add glide
|
8 years ago |
Anton Kaliaev
|
5b0489cdb4
|
use plain struct instead of go-config
|
8 years ago |
Anton Kaliaev
|
b8a939a894
|
test non persistent mconnection
|
8 years ago |
Anton Kaliaev
|
2b02843453
|
remove unused const
|
8 years ago |
Anton Kaliaev
|
5be72672fe
|
use golang time datatype instead of time units in name
|
8 years ago |
Anton Kaliaev
|
549d3bd09a
|
tests for MConnection
|
8 years ago |
Anton Kaliaev
|
868017cf1a
|
import go-common as cmn
|
8 years ago |
Ethan Buchman
|
97a5ed2d1a
|
Merge pull request #16 from tendermint/develop
v0.4.0
|
8 years ago |
Ethan Buchman
|
53d777a2d5
|
CHANGELOG.md
|
8 years ago |
Ethan Buchman
|
beb3eda438
|
fix addrbook start/stop
|
8 years ago |
Ethan Buchman
|
c94bc2bc2b
|
DialSeeds takes an addrbook
|
8 years ago |
Ethan Buchman
|
56eebb95ee
|
Merge pull request #12 from tendermint/bugfix/pex-issues-335
PEX issues #335
|
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
|
108beae7a8
|
more tests for AddrBook
|
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 |
Anton Kalyaev
|
e7656873c1
|
public save API
|
8 years ago |
Anton Kalyaev
|
332f7056f7
|
start/stop the book with reactor
Refs https://github.com/tendermint/tendermint/issues/335
|
8 years ago |
Ethan Buchman
|
17e6ae813f
|
Merge pull request #15 from tendermint/seedsfix
Seedsfix
|
8 years ago |
Ethan Buchman
|
dab31d0166
|
version bump to 0.4.0
|
8 years ago |