Liamsi
d2c05bc5b9
Revert "delete everything" (includes everything non-go-crypto)
This reverts commit 96a3502
7 years ago
Liamsi
96a3502126
delete everything
7 years ago
Ethan Buchman
68a0b3f95b
version bump. add roadmap back. minor fixes
7 years ago
Ethan Buchman
b6c062c451
fixes from review
7 years ago
Ethan Buchman
fae94a44a2
p2p/pex: some addrbook fixes
* fix before/after in isBad()
* allow multiple IPs per ID even if ID isOld
7 years ago
Ethan Buchman
3a30ee75b9
minor fixes
7 years ago
Ethan Buchman
3498b676a6
update spec and addrbook.go
7 years ago
Ethan Buchman
64569b15e5
fix build and test
7 years ago
Ethan Buchman
aaa81092e7
p2p: some comments and a log line
7 years ago
Ethan Buchman
c23909eecf
p2p/pex: minor cleanup and comments
7 years ago
Thomas Corbière
ab00bf7c8b
standardize PRNG access ( #1411 )
* replace math/rand with tmlibs equivalent.
* update tmlibs dependency
7 years ago
Anton Kaliaev
6e39ec6e26
do not even try to dial ourselves
also, remove address from the book (plus mark it as our address)
and return an error if we fail to parse peers list
7 years ago
Anton Kaliaev
3b3f45d49b
use addrbook#AddOurAddress to store our address
7 years ago
Anton Kaliaev
cee7b5cb54
GetSelectionWithBias
Refs #1130
7 years ago
Anton Kaliaev
f0d4f56327
refactor pex_reactor tests
7 years ago
Anton Kaliaev
2a24ae90c1
fixes from Jae's review
1. remove pointer
2. add Quit() method to Service interface
7 years ago
Ethan Buchman
8f3bd3f209
p2p: addrBook.Save() on DialPeersAsync
7 years ago
Ethan Buchman
44e967184a
p2p: tmconn->conn and types->p2p
7 years ago
Ethan Buchman
5b5cbaa66a
p2p: use sub dirs
7 years ago
Ethan Buchman
03550c7076
wip addrbook
7 years ago
Ethan Buchman
930fde056a
p2p: add back lost func
7 years ago
Ethan Buchman
452d10f368
cleanup switch
7 years ago
Ethan Buchman
53a5498fc5
more fixes from review
7 years ago
Ethan Buchman
7d35500e6b
p2p: add ID to NetAddress and use for AddrBook
7 years ago
Zach Ramsay
d033470817
lil fixes
7 years ago
Zach Ramsay
15651a931e
linting errors: tackle p2p package
7 years ago
Ethan Buchman
c4b695f78d
minor fixes from review
7 years ago
Ethan Buchman
feb3230160
some comments
7 years ago
Ethan Buchman
8e044b0e6d
p2p/addrbook: some comments
7 years ago
Ethan Buchman
40e93a5f9e
p2p/addrbook: fix addToOldBucket
7 years ago
Ethan Buchman
8c88cc017a
p2p/addrbook: addAddress returns error. more defensive PickAddress
7 years ago
Ethan Buchman
ed95cc160a
p2p/addrbook: simplify PickAddress
7 years ago
Ethan Buchman
2f067a3f65
p2p/addrbook: addrNew/Old -> bucketsNew/Old
7 years ago
Ethan Buchman
498a82784d
p2p/addrbook: comments
7 years ago
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().
7 years ago
Anton Kaliaev
b4ece65726
standardize key for errors (should be "err")
8 years ago
zramsay
cf31f8d06f
core: apply megacheck vet tool (unused, gosimple, staticcheck)
8 years ago
Anton Kaliaev
f803544195
new logging
8 years ago
Ethan Buchman
57151d6043
p2p: use cmn instead of .
8 years ago
Ethan Buchman
23a6a6f8fc
move into p2p package
8 years ago
Ethan Buchman
eaeb547938
use tmlibs
8 years ago
Anton Kaliaev
5ab8ca0868
fix race
8 years ago
Anton Kaliaev
4c0d1d3ad2
return wg to addrbook
8 years ago
Anton Kaliaev
0277e52bd5
fix merge
8 years ago
Anton Kaliaev
cf18bf2966
add public RemoveAddress API
after discussion with @ebuchman (https://github.com/tendermint/go-p2p/pull/10#discussion_r96471729 )
8 years ago
Anton Kaliaev
590efc1040
call saveToFile OnStop
This is better than waiting because while we wait, anything could happen
(crash, timeout of the code who's using addrbook, ...). If we save
immediately, we have much greater chances of success.
8 years ago
Ethan Buchman
beb3eda438
fix addrbook start/stop
8 years ago
Ethan Buchman
88b5c724f2
remove public addr book funcs from pex
8 years ago
Anton Kalyaev
e7656873c1
public save API
8 years ago
Jae Kwon
bd353e004a
QuitService->BaseService
8 years ago