Ethan Buchman
bb1b249e8a
types: lock block on MakePartSet
7 years ago
Ethan Buchman
c778d7f5d1
fix addresses
7 years ago
Ethan Buchman
bb9b12d67a
add scripts/wire2amino.go
7 years ago
Ethan Buchman
767521ac52
update test/p2p/data for amino
7 years ago
Ethan Buchman
df9bf60b05
forgot Gopkg.lock
7 years ago
Ethan Buchman
466c3ab1c7
forgot node/wire.go
7 years ago
Ethan Buchman
c68d406195
fix tests
7 years ago
Ethan Buchman
02c0835e9b
fixes post merge
7 years ago
Ethan Buchman
c170800fbd
Merge branch 'develop' into jae/aminoify
7 years ago
Jae Kwon
7afe74a963
Update go-crypto to 0.6.1 and change config/toml.go privval address
7 years ago
Jae Kwon
02531ca5a3
Fix race testing (cont;) Bump version to 0.19.0
7 years ago
Jae Kwon
d24e4cb821
Fix race testing
7 years ago
Jae Kwon
fb64314d1c
Review from Anton
7 years ago
Ethan Buchman
4930b61a38
Merge pull request #1431 from tendermint/release/v0.18.0
Release/v0.18.0
7 years ago
Ethan Buchman
9cc2cf362f
changelog and version
7 years ago
Ethan Buchman
ed93fb34ab
Merge pull request #1350 from tendermint/1275-p2p-loopbacks
p2p: loopbacks should be detected and ignored instead of dialling self infinitely
7 years ago
Anton Kaliaev
3d32474da8
make linter happy
7 years ago
Anton Kaliaev
3233c318ea
only log errors, dial correct addresses
"this means if there are lookup errors or typos in the persistent_peers,
tendermint will fail to start ? didn't some one ask for us not to do
this previously ?"
7 years ago
Jae Kwon
32e1d195a0
Fix cmd and lite
7 years ago
Jae Kwon
3ca5292dc9
Fix rpc tests
7 years ago
Jae Kwon
c541d58d2f
WIP: fix rpc/core
7 years ago
Jae Kwon
3037b5b7ca
Fix rpc/lib/...
7 years ago
Ethan Buchman
c9a263c589
Merge pull request #1389 from tendermint/1380-trim-whitespaces
trim whitespace from elements of lists (like `persistent_peers`)
7 years ago
Jae Kwon
e4492afbad
Merge
7 years ago
Ethan Buchman
799beebd36
fix consensus tests
7 years ago
Jae Kwon
45ec5fd170
WIP consensus
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
d38a6cc7ea
trim whitespace from elements of lists (like `persistent_peers`)
Refs #1380
7 years ago
Anton Kaliaev
7f6ee7a46b
add a comment for NewSwitch
7 years ago
Anton Kaliaev
34b77fcad4
log error when we fail to add new address
7 years ago
Anton Kaliaev
3b3f45d49b
use addrbook#AddOurAddress to store our address
7 years ago
Anton Kaliaev
3284a13fee
add test
Refs #1275
7 years ago
Anton Kaliaev
fc9ffee2e3
remove unused tracking because it leads to memory leaks in tests
see https://blog.cosmos.network/debugging-the-memory-leak-in-tendermint-210186711420
7 years ago
Anton Kaliaev
3a672cb2a9
update changelog [ci skip]
7 years ago
Anton Kaliaev
4b8e342309
fix panic: lookup testing on 10.0.2.3:53: no such host
7 years ago
Anton Kaliaev
5a2fa71b03
use combination of IP and port, not just IP
7 years ago
Anton Kaliaev
9a57ef9cbf
do not dial ourselves (ok, maybe just once)
Refs #1275
7 years ago
Ethan Buchman
59ca9bf480
update to tmlibs v0.8.1
7 years ago
Ethan Buchman
7cce07bc99
Merge pull request #1352 from tendermint/1228-require-id
p2p: require all addresses come with an ID no matter what
7 years ago
Ethan Buchman
0ae66f75ce
Merge pull request #1420 from tendermint/1414-data-race
protect Record* peerStateStats functions by mutex
7 years ago
Jae Kwon
5d1c758730
Fix evidence
7 years ago
Jae Kwon
1b9323f105
Fix blockchain tests
7 years ago
Anton Kaliaev
cee7b5cb54
GetSelectionWithBias
Refs #1130
7 years ago
Anton Kaliaev
1585152341
https://github.com/tendermint/tendermint/pull/1128#discussion_r162799294
Refs #1130
7 years ago
Anton Kaliaev
8e699c2bfd
defaultSeedDisconnectWaitPeriod should be at least as long as we expect
it to take for a peer to become MarkGood
Refs #1130
7 years ago
Anton Kaliaev
904a3115a6
require addresses to have an ID by default
Refs #1228
7 years ago
Anton Kaliaev
a506cf47ad
protect Record* peerStateStats functions by mutex
Fixes #1414
DATA RACE:
```
Read at 0x00c4214ee940 by goroutine 146:
github.com/tendermint/tendermint/consensus.(*peerStateStats).String()
<autogenerated>:1 +0x57
fmt.(*pp).handleMethods()
/usr/local/go/src/fmt/print.go:596 +0x3f4
fmt.(*pp).printArg()
/usr/local/go/src/fmt/print.go:679 +0x11f
fmt.(*pp).doPrintf()
/usr/local/go/src/fmt/print.go:996 +0x319
fmt.Sprintf()
/usr/local/go/src/fmt/print.go:196 +0x73
github.com/tendermint/tendermint/consensus.(*PeerState).StringIndented()
github.com/tendermint/tendermint/consensus/_test/_obj_test/reactor.go:1426 +0x573
github.com/tendermint/tendermint/consensus.(*PeerState).String()
github.com/tendermint/tendermint/consensus/_test/_obj_test/reactor.go:1419 +0x66
github.com/go-logfmt/logfmt.safeString()
/home/ubuntu/go/src/github.com/go-logfmt/logfmt/encode.go:299 +0x9d
github.com/go-logfmt/logfmt.writeValue()
/home/ubuntu/go/src/github.com/go-logfmt/logfmt/encode.go:217 +0x5a0
github.com/go-logfmt/logfmt.(*Encoder).EncodeKeyval()
/home/ubuntu/go/src/github.com/go-logfmt/logfmt/encode.go:61 +0x1dd
github.com/tendermint/tmlibs/log.tmfmtLogger.Log()
/home/ubuntu/go/src/github.com/tendermint/tmlibs/log/tmfmt_logger.go:107 +0x1001
github.com/tendermint/tmlibs/log.(*tmfmtLogger).Log()
<autogenerated>:1 +0x93
github.com/go-kit/kit/log.(*context).Log()
/home/ubuntu/go/src/github.com/go-kit/kit/log/log.go:124 +0x248
github.com/tendermint/tmlibs/log.(*tmLogger).Debug()
/home/ubuntu/go/src/github.com/tendermint/tmlibs/log/tm_logger.go:64 +0x1d0
github.com/tendermint/tendermint/consensus.(*PeerState).PickSendVote()
github.com/tendermint/tendermint/consensus/_test/_obj_test/reactor.go:1059 +0x242
github.com/tendermint/tendermint/consensus.(*ConsensusReactor).gossipVotesForHeight()
github.com/tendermint/tendermint/consensus/_test/_obj_test/reactor.go:789 +0x6ef
github.com/tendermint/tendermint/consensus.(*ConsensusReactor).gossipVotesRoutine()
github.com/tendermint/tendermint/consensus/_test/_obj_test/reactor.go:723 +0x1039
Previous write at 0x00c4214ee940 by goroutine 21:
github.com/tendermint/tendermint/consensus.(*PeerState).RecordVote()
github.com/tendermint/tendermint/consensus/_test/_obj_test/reactor.go:1242 +0x15a
github.com/tendermint/tendermint/consensus.(*ConsensusReactor).Receive()
github.com/tendermint/tendermint/consensus/_test/_obj_test/reactor.go:309 +0x32e6
github.com/tendermint/tendermint/p2p.createMConnection.func1()
/home/ubuntu/go/src/github.com/tendermint/tendermint/p2p/peer.go:365 +0xea
github.com/tendermint/tendermint/p2p/conn.(*MConnection).recvRoutine()
/home/ubuntu/go/src/github.com/tendermint/tendermint/p2p/conn/connection.go:531 +0x779
```
7 years ago
Anton Kaliaev
7689c15413
Merge pull request #1378 from tendermint/bucky/disable-test-libs
comment out test_libs because of gcc dep in tmlibs
7 years ago
Zaki Manian
f907113c19
Net_info should print the ID of peers ( #1312 )
7 years ago
Anton Kaliaev
140f962201
Merge pull request #1406 from tendermint/docker
Update dockerfile and readme
7 years ago