Ethan Buchman
17f7a9b510
improve seed dialing logic
2018-01-14 03:56:15 -05:00
Ethan Buchman
3df5fd21cd
better abuse handling in pex
2018-01-14 03:22:01 -05:00
Ethan Buchman
68237911ba
NetAddress.Same checks ID or DialString
2018-01-14 01:15:37 -05:00
Ethan Buchman
f9e4f6eb6b
reorder peer.go methods
2018-01-14 01:15:37 -05:00
Ethan Buchman
8b74a8d6ac
NodeInfo not a pointer
2018-01-14 01:15:33 -05:00
Ethan Buchman
08f84cd712
a little more moving around
2018-01-13 23:56:57 -05:00
Ethan Buchman
452d10f368
cleanup switch
2018-01-13 17:37:52 -05:00
Ethan Buchman
7667e11973
remove RemoteAddr from NodeInfo
2018-01-13 17:36:03 -05:00
Ethan Buchman
53a5498fc5
more fixes from review
2018-01-13 17:34:12 -05:00
Ethan Buchman
e4d52401cf
some fixes from review
2018-01-13 16:06:51 -05:00
Ethan Buchman
9670519a21
remove PoW from ID
2018-01-13 15:50:59 -05:00
Ethan Buchman
b1485b181a
Merge branch 'p2p-consolidate' into p2p-id
2018-01-13 15:20:23 -05:00
Ethan Buchman
c1e167e330
note in trust metric test
2018-01-13 15:11:13 -05:00
Ethan Buchman
e2b3b5b58c
dial_persistent_peers -> dial_peers with persistent option
2018-01-13 14:50:58 -05:00
Anton Kaliaev
075ae1e301
minimal test for dialing seeds in pex reactor
2018-01-09 18:29:29 -06:00
Anton Kaliaev
705d51aa42
move dialSeedsIfAddrBookIsEmptyOrPEXFailedToConnect into PEX reactor
2018-01-09 17:54:29 -06:00
Anton Kaliaev
e4897b7bdd
rename manual peers to persistent peers
2018-01-09 16:18:05 -06:00
Anton Kaliaev
28fc15028a
distinguish between seeds and manual peers in the config/flags
...
- we only use seeds if we can’t connect to peers in the addrbook.
- we always connect to nodes given in config/flags
Refs #864
2018-01-09 16:03:24 -06:00
Adrian Brink
f602de437e
Move P2P docs into docs folder
2018-01-03 10:49:47 +01:00
Ethan Buchman
488ae529ad
p2p: authenticate peer ID
2018-01-01 23:23:11 -05:00
Ethan Buchman
6e823c6e87
p2p: support addr format ID@IP:PORT
2018-01-01 23:08:20 -05:00
Ethan Buchman
7d35500e6b
p2p: add ID to NetAddress and use for AddrBook
2018-01-01 22:39:08 -05:00
Ethan Buchman
a17105fd46
p2p: peer.Key -> peer.ID
2018-01-01 22:39:05 -05:00
Ethan Buchman
b289d2baf4
persistent node key and ID
2018-01-01 21:21:42 -05:00
Ethan Buchman
f2e0abf1dc
p2p: reorder some checks in addPeer; add comments to NodeInfo
2018-01-01 21:21:39 -05:00
Ethan Buchman
528154f1a2
p2p: PrivKey need not be Ed25519
2018-01-01 19:44:01 -05:00
Ethan Buchman
bc71840f06
more p2p docs
2018-01-01 16:30:36 -05:00
Ethan Buchman
1acb12edf5
p2p docs
2017-12-31 17:11:09 -05:00
Ethan Buchman
14c812a39c
tmlibs timer fix
2017-12-25 11:11:55 -05:00
Ethan Buchman
652d1e3de8
Merge pull request #979 from tendermint/934-node-fails-to-parse-seeds
...
strip protocol if defined
2017-12-19 12:26:32 -05:00
Ethan Buchman
cb3ac6987e
remove some debugs
2017-12-19 10:11:37 -05:00
Ethan Buchman
5d04ccbe51
excessive logging. update tmlibs for timer fix
2017-12-16 19:16:08 -05:00
Ethan Buchman
d7cb2f850d
more logs in p2p
2017-12-16 13:36:52 -05:00
Ethan Buchman
bfe0a4a8ac
more logging
2017-12-16 13:36:52 -05:00
Ethan Buchman
0ec7909ec3
more logging in p2p and consensus
2017-12-16 13:36:52 -05:00
Anton Kaliaev
c513649df4
strip protocol if defined
...
Fixes #934
2017-12-15 13:36:08 -06:00
Anton Kaliaev
a6911825b0
PanicCrisis is deprecated
2017-12-15 13:35:49 -06:00
Ethan Buchman
068d83bce8
Merge pull request #677 from tendermint/blockchain-test-store
...
blockchain: add tests for BlockStore
2017-12-15 13:33:55 -05:00
Ethan Buchman
78a682e4b6
blockchain: test fixes
2017-12-15 12:07:48 -05:00
Ethan Buchman
462b755a60
activate PEX reactor by default
2017-12-13 12:25:48 -06:00
Ethan Buchman
64f056b57d
Merge branch '916-remove-sleeps-from-tests' into develop
2017-12-12 16:43:36 -05:00
Ethan Buchman
90df9fa1bf
p2p/trust: remove extra channels
2017-12-12 16:43:19 -05:00
caffix
eae6e6381e
trust metric is now a service and the test ticker has been added
2017-12-12 15:33:42 -05:00
Petabyte Storage
8be708fe5b
fix spelling and makefile gometalinter.v2
2017-12-11 20:48:15 -08:00
Ethan Buchman
5511bd8e85
p2p: exponential backoff on reconnect. closes #939
2017-12-11 13:41:09 -05:00
Ethan Buchman
a37c1143ca
adr: update 007 trust metric usage
2017-12-10 19:00:44 -05:00
Zach
12c5a57415
determinisitic linter ( #902 )
...
* linter: address gosimple lints
* linter: make deterministic & a rebase fix
* lint/rpc: fix a gosimple lint
* run linter in CI
* fix rebase mistake
* fix makefile
* ugh
* revert Makefile
* add metalinter to CI
* try this
* linter: last little fix
* need glide
* better
* okayy circle, have it your way
* lints: gosimple
* pr comments
2017-12-10 17:44:22 +00:00
caffix
44f62e5e27
built the WaitForStop functionality into the Stop method
2017-12-09 13:25:28 -05:00
caffix
5d464364a8
fixed the racy test and removed all the calls to Sleep
2017-12-08 15:51:18 -05:00
Anton Kaliaev
c609b18698
tolerate unresolvable seeds (Refs #880 )
2017-12-07 13:17:09 -06:00
Ethan Buchman
58b4a8395b
Merge pull request #917 from tendermint/trust-metric-cleanup
...
Trust metric cleanup
2017-12-06 02:11:38 -05:00
Ethan Buchman
e101aa9fc8
fix for legacy gowire
2017-12-06 01:21:14 -05:00
Ethan Buchman
cb9a1dbb4f
p2p/trust: lock on Copy()
2017-12-01 23:35:17 -05:00
Ethan Buchman
814541f6d9
p2p/trust: split into multiple files and improve function order
2017-12-01 23:35:12 -05:00
Anton Kaliaev
691e266bef
ignore ErrAlreadyStarted when starting addrbook in PEXReactor
2017-11-29 10:53:30 -06:00
Anton Kaliaev
69b5da766c
service#Start, service#Stop signatures were changed
...
See https://github.com/tendermint/tmlibs/issues/45
2017-11-29 10:38:58 -06:00
Ethan Buchman
9529f12c28
more linting
2017-11-27 22:39:12 +00:00
Ethan Buchman
55b81cc1a1
address linting FIXMEs
2017-11-27 22:39:12 +00:00
Zach Ramsay
478a10aa41
Write doesn't need error checked
2017-11-27 22:39:12 +00:00
Zach Ramsay
d033470817
lil fixes
2017-11-27 22:39:12 +00:00
Zach Ramsay
7ad8a8ab55
Tests almost passing
2017-11-27 22:39:12 +00:00
Zach Ramsay
a15c7f221d
linting: moar fixes
2017-11-27 22:39:11 +00:00
Zach Ramsay
d7cb291fb2
errcheck; sort some stuff out
2017-11-27 22:39:11 +00:00
Zach Ramsay
15651a931e
linting errors: tackle p2p package
2017-11-27 22:39:11 +00:00
Zach Ramsay
68e7983c70
linting errors: afew more
2017-11-27 22:39:11 +00:00
Zach Ramsay
8f0237610e
linting errors: clean it all up
2017-11-27 22:39:11 +00:00
Zach Ramsay
b75d4f73e7
errcheck: PR comment fixes
2017-11-27 22:39:11 +00:00
Zach Ramsay
331857c9e6
linting: apply errcheck part2
2017-11-27 22:39:11 +00:00
Zach Ramsay
57ea4987f7
linting: apply errcheck part1
2017-11-27 22:39:11 +00:00
Zach Ramsay
1721543e5c
linting: apply misspell
2017-11-27 22:39:11 +00:00
Zach Ramsay
46ccbcbff6
linting: apply 'gofmt -s -w' throughout
2017-11-27 22:39:11 +00:00
Ethan Buchman
94e400a5d6
Merge pull request #896 from tendermint/normalize-priority-and-id
...
normalize priority and id and remove pointers in ChannelDescriptor
2017-11-27 17:05:38 +00:00
Petabyte Storage
59b3dcb5cf
normalize priority and id and remove pointers in ChannelDescriptor
2017-11-25 22:01:23 -08:00
caffix
887cb6d0cd
added public methods to handle locking within the trust metric
2017-11-22 23:42:38 -05:00
caffix
aeaf2d0b20
Merge branch 'develop' of https://github.com/tendermint/tendermint into develop
2017-11-22 23:11:01 -05:00
Ethan Buchman
e845987503
p2p: disable trustmetric test while being fixed
2017-11-22 20:20:53 +00:00
Ethan Buchman
531b1197a7
Merge pull request #843 from tendermint/refactor-mconnection-with-go-wire-1
...
WIP: begin parallel refactoring: go-wire Write methods and MConnection
2017-11-22 19:34:22 +00:00
Ethan Buchman
e997db7a23
Merge pull request #859 from tendermint/fix/addrbook
...
Fix/addrbook
2017-11-21 15:31:48 +00:00
Ethan Buchman
c4b695f78d
minor fixes from review
2017-11-21 15:30:19 +00:00
Ethan Buchman
75463b8331
Merge pull request #877 from tendermint/p2p-switch-DialSeeds-undeterministically
...
p2p: make Switch.DialSeeds use a new PRNG per call
2017-11-21 15:24:29 +00:00
caffix
9c8100043e
made changes to address suggestions from the PR comments
2017-11-20 19:15:11 -05:00
Emmanuel Odeke
031e10133c
p2p: make Switch.DialSeeds use a new PRNG per call
...
Fixes https://github.com/tendermint/tendermint/issues/875
Ensure that every DialSeeds call uses a new PRNG seeded from
tendermint/tmlibs/common.RandInt which internally uses
crypto/rand to seed its source.
2017-11-20 15:28:42 -07:00
caffix
4087326f45
fixed race condition reported in issue #881
2017-11-20 16:47:05 -05:00
Ethan Buchman
f9bc22ec6a
p2p: fix comment on addPeer (thanks @odeke-em)
2017-11-20 21:36:01 +00:00
Ethan Buchman
26cd99c66e
p2p: fix non-routable addr in test
2017-11-20 19:56:44 +00:00
Emmanuel Odeke
5c34d087d9
p2p: use bytes.Equal for key comparison
...
Updates https://github.com/tendermint/tendermint/issues/850
My security alarms falsely blarred when I skimmed and noticed
keys being compared with `==`, without the proper context
so I mistakenly filed an issue, yet the purpose of that
comparison was to check if the local ephemeral public key
was just the least, sorted lexicographically.
Anyways, let's use the proper bytes.Equal check, to save future labor.
2017-11-18 23:34:27 -07:00
Ethan Buchman
53f15fde07
update changelog
2017-11-17 00:04:03 +00:00
Ethan Buchman
af0db599b0
minor fixes
2017-11-16 23:57:00 +00:00
Ethan Buchman
104368bd84
Merge pull request #787 from caffix/develop
...
Initial Trust Metric Implementation
2017-11-16 23:51:53 +00:00
Ethan Buchman
99461a178e
Merge pull request #857 from gguoss/patch-1
...
Failed to compile comment code
2017-11-16 18:35:18 +00:00
Ethan Buchman
feb3230160
some comments
2017-11-16 04:43:07 +00:00
Ethan Buchman
be1a16a601
p2p/pex: simplify ensurePeers
2017-11-16 04:30:38 +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
435eb6e2b3
p2p/addrbook: add non-terminating test
2017-11-16 04:04:54 +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
Guanghua Guo
b5708825a7
Failed to compile comment code
2017-11-16 09:45:58 +08:00