Commit Graph

62 Commits

Author SHA1 Message Date
Anton Kaliaev b8a939a894
test non persistent mconnection 2017-04-10 22:46:48 +04:00
Anton Kaliaev 2b02843453
remove unused const 2017-04-10 22:46:48 +04:00
Anton Kaliaev 5be72672fe
use golang time datatype instead of time units in name 2017-04-10 22:46:48 +04:00
Anton Kaliaev 549d3bd09a
tests for MConnection 2017-04-10 22:46:48 +04:00
Anton Kaliaev 868017cf1a
import go-common as cmn 2017-04-10 22:46:48 +04:00
Ethan Buchman 97a5ed2d1a Merge pull request #16 from tendermint/develop
v0.4.0
2017-03-06 03:11:04 -05:00
Ethan Buchman 53d777a2d5 CHANGELOG.md 2017-03-06 01:30:41 -05:00
Ethan Buchman beb3eda438 fix addrbook start/stop 2017-03-05 22:59:18 -05:00
Ethan Buchman c94bc2bc2b DialSeeds takes an addrbook 2017-03-05 21:57:07 -05:00
Ethan Buchman 56eebb95ee Merge pull request #12 from tendermint/bugfix/pex-issues-335
PEX issues #335
2017-03-04 23:19:51 -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 108beae7a8 more tests for AddrBook 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 e7656873c1 public save API 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 17e6ae813f Merge pull request #15 from tendermint/seedsfix
Seedsfix
2017-03-03 17:33:23 -05:00
Ethan Buchman dab31d0166 version bump to 0.4.0 2017-03-03 17:30:38 -05:00
Ethan Buchman 0e7baf027b some dial seeds fixes 2017-03-03 16:42:10 -05:00
rigelrozanski 26275ba66c dial seeds error handling 2017-03-03 16:42:10 -05:00
Ethan Buchman 3d98f675f3 Merge pull request #11 from tendermint/develop
Develop
2017-01-12 21:39:57 -05:00
Ethan Buchman 67c9086b74 optional panic on AddPeer err 2017-01-12 21:09:24 -05:00
Ethan Buchman e47722ecb2 Connect2Switches: panic on err 2017-01-12 20:49:48 -05:00
Jae Kwon 2b750ea49f Make Connect2Switches blocking 2017-01-12 20:49:48 -05:00
Ethan Buchman 58e42397f8 close conns on filter; fix order in MakeConnectedSwitch 2017-01-12 20:49:48 -05:00
Jae Kwon bd353e004a QuitService->BaseService 2017-01-12 20:49:48 -05:00
Jae Kwon eab2baa363 use go-flowrate instead of flowcontrol 2016-12-04 18:20:37 -08:00
Ethan Buchman 2cee364692 addrbook: toggle strict routability 2016-11-30 22:57:21 -05:00
Ethan Buchman 1eb390680d Merge pull request #8 from tendermint/develop
update MakeConnectedSwitches
2016-10-10 14:48:58 -04:00
Ethan Buchman 153ac88672 update MakeConnectedSwitches 2016-09-14 00:57:53 -04:00
Ethan Buchman f508f3f20b Merge pull request #6 from tendermint/develop
filter conn by addr/pubkey. closes #3
2016-09-09 19:45:12 -04:00
Ethan Buchman 642901d5aa filter conn by addr/pubkey. closes #3 2016-08-25 13:46:43 -04:00
Ethan Buchman 929cf433b9 fix chDesc race 2016-06-26 00:34:34 -04:00
Ethan Buchman 711d2541f5 MakeConnectedSwitches function 2016-06-26 00:34:23 -04:00
Ethan Buchman 7376a72dd7 circle badge 2016-06-21 14:40:24 -04:00
Ethan Buchman 981c6868ad fix race conditions in tests 2016-06-21 14:35:29 -04:00
Ethan Buchman 5bd7692323 version bump 2016-05-12 00:10:46 -04:00
Ethan Buchman 6684a18730 fix test 2016-05-12 00:08:41 -04:00
Ethan Buchman 0dc6ebc325 configurable fuzz conn 2016-05-12 00:00:52 -04:00
Ethan Buchman ffbd6d8782 drop the p2p_ 2016-05-11 23:47:51 -04:00
Jae Kwon 7d997ca8e6 No global config 2016-05-08 14:59:27 -07:00
Ethan Buchman 78c9d526c3 change some log.Info to log.Debug 2016-03-29 11:37:51 -07:00
Jae Kwon 4baf007fb8 Merge pull request #2 from tendermint/develop
make some params configurable
2016-03-27 20:44:10 -07:00
Ethan Buchman 69c7ae5e3f version bump 2016-03-17 05:05:02 -04:00
Ethan Buchman 114d90bec8 don't reallocate on recvMsgPacket 2016-03-17 05:05:02 -04:00
Jae Kwon 10619248c6 Use go-crypto CRand* 2016-03-13 09:42:36 -07:00
Ethan Buchman 389e4b8b69 config: toggle authenticated encryption 2016-03-10 19:07:01 -05:00
Jae Kwon 1bc871162d Conform to new go-config behavior; ApplyConfig not needed 2016-03-06 12:33:07 -08:00
Ethan Buchman f28f791fff make some params configurable 2016-03-06 12:24:01 -08:00
Jae Kwon 7f6aad20fb Add note on nondeterminism of Broadcast 2016-03-04 22:04:05 -08:00