54 Commits

Author SHA1 Message Date
Zach Ramsay
d033470817 lil fixes 2017-11-27 22:39:12 +00:00
Zach Ramsay
15651a931e linting errors: tackle p2p package 2017-11-27 22:39:11 +00:00
Ethan Buchman
c4b695f78d minor fixes from review 2017-11-21 15:30:19 +00:00
Ethan Buchman
feb3230160 some comments 2017-11-16 04:43:07 +00:00
Ethan Buchman
8e044b0e6d p2p/addrbook: some comments 2017-11-16 04:30:23 +00:00
Ethan Buchman
40e93a5f9e p2p/addrbook: fix addToOldBucket 2017-11-16 04:08:46 +00:00
Ethan Buchman
8c88cc017a p2p/addrbook: addAddress returns error. more defensive PickAddress 2017-11-16 03:59:54 +00:00
Ethan Buchman
ed95cc160a p2p/addrbook: simplify PickAddress 2017-11-16 02:31:47 +00:00
Ethan Buchman
2f067a3f65 p2p/addrbook: addrNew/Old -> bucketsNew/Old 2017-11-16 02:28:11 +00:00
Ethan Buchman
498a82784d p2p/addrbook: comments 2017-11-16 02:25:00 +00:00
Emmanuel Odeke
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
Ethan Buchman
2750343de5 Merge branch 'apply-megacheck' into unstable 2017-06-23 21:38:22 -04:00
Anton Kaliaev
b4ece65726
standardize key for errors (should be "err") 2017-06-14 12:50:49 +04:00
zramsay
cf31f8d06f core: apply megacheck vet tool (unused, gosimple, staticcheck) 2017-05-29 23:11:40 -04:00
Anton Kaliaev
f803544195
new logging 2017-05-13 10:24:58 +02:00
Ethan Buchman
57151d6043 p2p: use cmn instead of . 2017-05-04 22:43:55 -04:00
Ethan Buchman
23a6a6f8fc move into p2p package 2017-04-21 18:07:52 -04:00
Jae Kwon
c4ed55d801 Refactor to move common libraries out of project 2015-10-22 17:39:06 -07:00
Jae Kwon
e86073ec96 Use rpc/client/ws_client; OnStart() returns error 2015-08-11 11:01:17 -07:00
Jae Kwon
e7c1febb65 Simplify Service/Reactor pattern 2015-07-22 06:21:21 -07:00
Ethan Buchman
8e50bf15de panic wrapper functions 2015-07-21 10:46:05 -04:00
Jae Kwon
571a134318 BaseService and BaseReactor refactor and unification 2015-07-20 14:52:24 -07:00
Ethan Buchman
bb4ca1407f info->notice, debug->info 2015-07-19 22:44:40 +00:00
Jae Kwon
bdc2711f27 p2p comment prettify 2015-07-13 13:17:47 -07:00
Jae Kwon
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
Jae Kwon
75ef479547 Config is passed into each module. Remove tendermint/confer 2015-05-17 16:19:57 -07:00
Jae Kwon
3c96890d2d All numbers are in BigEndian 2015-05-03 17:42:46 -07:00
Jae Kwon
da9f4118a7 Atomic write to addrbook and privvalidator 2015-04-18 12:53:45 -07:00
Jae Kwon
13b6508ecd Package import path change 2015-04-01 17:30:16 -07:00
Ethan Buchman
60f166e823 tendermint2 2015-03-31 15:33:31 -07:00
Jae Kwon
7171823fc6 Fix blockpool bugs and clean up log messages. 2015-03-25 23:04:17 -07:00
Jae Kwon
b25915ee41 Minor cleanup 2015-03-21 19:01:13 -07:00
Jae Kwon
5c8e69d6de Log adding of addresses to book 2015-01-21 14:18:25 -08:00
Jae Kwon
85110224b4 Fix PeerSet.Remove() bug. 2015-01-21 13:40:26 -08:00
Jae Kwon
07b5b7a8f2 various log fixes 2014-12-29 18:39:19 -08:00
Jae Kwon
0bfb389b35 change logger to log15 2014-12-29 18:09:06 -08:00
Jae Kwon
8e9c060e6d Begin writing RPC HTTP Server 2014-12-16 05:43:23 -08:00
Jae Kwon
1ae9ecd2a9 fix basic tests. 2014-10-04 19:16:49 -07:00
Jae Kwon
d300a67bb1 saving development state... 2014-08-30 04:17:10 -07:00
Jae Kwon
c5732f9374 Moved PEX logic to PeerManager where it belongs. 2014-07-19 16:40:49 -07:00
Jae Kwon
9464241c02 don't add our listener address into addrbook. 2014-07-17 16:06:34 -07:00
Jae Kwon
9f7765d334 cleanup log messages 2014-07-17 16:06:34 -07:00
Jae Kwon
e50e14ddf5 switch events, node listens for new peers to ask for new addrs. 2014-07-17 16:06:34 -07:00
Jae Kwon
162bff99b2 addrbook key is more secure 2014-07-17 16:06:33 -07:00
Jae Kwon
45adb24d43 TMROOT env variable. Panic less. 2014-07-16 13:15:18 -07:00
Jae Kwon
92ea6c626f addrbook key is a string 2014-07-15 22:07:33 -07:00
Jae Kwon
1603d6f385 pretty print addrbook json 2014-07-15 21:53:39 -07:00
Jae Kwon
c9114a677c fix off by one. 2014-07-15 14:57:22 -07:00
Jae Kwon
f53e6d1a33 replace logger with go-logging 2014-07-14 16:15:13 -07:00
Jae Kwon
cc9ea407aa with seed node 2014-07-12 14:52:31 -07:00