Commit Graph

44 Commits

Author SHA1 Message Date
62c1bc0a20 p2p: comment on the wg.Add before go saveRoutine()
Just noticed while auditing the code in p2p/addrbook.go,
wg.Add(1) but no subsequent defer.
@jaekwon and I had a discussion offline and we agreed to
comment about why the code was that way and why
we shouldn't move the wg.Add(1) into .saveRoutine() because
if go a.saveRoutine() isn't started before anyone invokes
a.Wait(), then we'd have raced a.saveRoutine().
2017-11-13 18:14:58 -07:00
2750343de5 Merge branch 'apply-megacheck' into unstable 2017-06-23 21:38:22 -04:00
b4ece65726 standardize key for errors (should be "err") 2017-06-14 12:50:49 +04:00
cf31f8d06f core: apply megacheck vet tool (unused, gosimple, staticcheck) 2017-05-29 23:11:40 -04:00
f803544195 new logging 2017-05-13 10:24:58 +02:00
57151d6043 p2p: use cmn instead of . 2017-05-04 22:43:55 -04:00
23a6a6f8fc move into p2p package 2017-04-21 18:07:52 -04:00
c4ed55d801 Refactor to move common libraries out of project 2015-10-22 17:39:06 -07:00
e86073ec96 Use rpc/client/ws_client; OnStart() returns error 2015-08-11 11:01:17 -07:00
e7c1febb65 Simplify Service/Reactor pattern 2015-07-22 06:21:21 -07:00
8e50bf15de panic wrapper functions 2015-07-21 10:46:05 -04:00
571a134318 BaseService and BaseReactor refactor and unification 2015-07-20 14:52:24 -07:00
bb4ca1407f info->notice, debug->info 2015-07-19 22:44:40 +00:00
bdc2711f27 p2p comment prettify 2015-07-13 13:17:47 -07:00
9965dd5de6 uint* to int* whereever appropriate; https://www.reddit.com/r/golang/comments/2q5vdu/int_vs_uint/ 2015-06-25 20:28:34 -07:00
75ef479547 Config is passed into each module. Remove tendermint/confer 2015-05-17 16:19:57 -07:00
3c96890d2d All numbers are in BigEndian 2015-05-03 17:42:46 -07:00
da9f4118a7 Atomic write to addrbook and privvalidator 2015-04-18 12:53:45 -07:00
13b6508ecd Package import path change 2015-04-01 17:30:16 -07:00
60f166e823 tendermint2 2015-03-31 15:33:31 -07:00
7171823fc6 Fix blockpool bugs and clean up log messages. 2015-03-25 23:04:17 -07:00
b25915ee41 Minor cleanup 2015-03-21 19:01:13 -07:00
5c8e69d6de Log adding of addresses to book 2015-01-21 14:18:25 -08:00
85110224b4 Fix PeerSet.Remove() bug. 2015-01-21 13:40:26 -08:00
07b5b7a8f2 various log fixes 2014-12-29 18:39:19 -08:00
0bfb389b35 change logger to log15 2014-12-29 18:09:06 -08:00
8e9c060e6d Begin writing RPC HTTP Server 2014-12-16 05:43:23 -08:00
1ae9ecd2a9 fix basic tests. 2014-10-04 19:16:49 -07:00
d300a67bb1 saving development state... 2014-08-30 04:17:10 -07:00
c5732f9374 Moved PEX logic to PeerManager where it belongs. 2014-07-19 16:40:49 -07:00
9464241c02 don't add our listener address into addrbook. 2014-07-17 16:06:34 -07:00
9f7765d334 cleanup log messages 2014-07-17 16:06:34 -07:00
e50e14ddf5 switch events, node listens for new peers to ask for new addrs. 2014-07-17 16:06:34 -07:00
162bff99b2 addrbook key is more secure 2014-07-17 16:06:33 -07:00
45adb24d43 TMROOT env variable. Panic less. 2014-07-16 13:15:18 -07:00
92ea6c626f addrbook key is a string 2014-07-15 22:07:33 -07:00
1603d6f385 pretty print addrbook json 2014-07-15 21:53:39 -07:00
c9114a677c fix off by one. 2014-07-15 14:57:22 -07:00
f53e6d1a33 replace logger with go-logging 2014-07-14 16:15:13 -07:00
cc9ea407aa with seed node 2014-07-12 14:52:31 -07:00
0b1265dc10 . 2014-07-10 22:14:23 -07:00
442cae1f3f addrbook cleanup 2014-07-10 02:19:50 -07:00
2d39e463a5 cleanup 2014-07-09 14:27:32 -07:00
61224f86c9 package rename peer -> p2p 2014-07-07 20:03:50 -07:00