Anton Kaliaev
cee7b5cb54
GetSelectionWithBias
...
Refs #1130
2018-04-05 12:00:16 +02:00
Anton Kaliaev
1585152341
https://github.com/tendermint/tendermint/pull/1128#discussion_r162799294
...
Refs #1130
2018-04-05 12:00:16 +02:00
Anton Kaliaev
8e699c2bfd
defaultSeedDisconnectWaitPeriod should be at least as long as we expect
...
it to take for a peer to become MarkGood
Refs #1130
2018-04-05 12:00:16 +02:00
Anton Kaliaev
904a3115a6
require addresses to have an ID by default
...
Refs #1228
2018-04-05 11:55:29 +02:00
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
```
2018-04-05 11:42:45 +02:00
Anton Kaliaev
7689c15413
Merge pull request #1378 from tendermint/bucky/disable-test-libs
...
comment out test_libs because of gcc dep in tmlibs
2018-04-05 11:06:30 +02:00
Zaki Manian
f907113c19
Net_info should print the ID of peers ( #1312 )
2018-04-05 11:02:23 +02:00
Anton Kaliaev
140f962201
Merge pull request #1406 from tendermint/docker
...
Update dockerfile and readme
2018-04-05 10:57:19 +02:00
Ethan Buchman
c23d907f12
Merge pull request #1391 from tendermint/581-include-validator-power
...
Include validator power in /status
2018-04-05 11:18:45 +03:00
Anton Kaliaev
ed782e7508
include validator's voting power in /status
...
Refs #581
2018-04-04 11:34:59 +02:00
Anton Kaliaev
0732526465
use more relaxing < and >= ops instead of !=
...
an example of Search from godocs:
```
package main
import (
"fmt"
"sort"
)
func main() {
a := []int{1, 3, 6, 10, 15, 21, 28, 36, 45, 55}
x := 6
i := sort.Search(len(a), func(i int) bool { return a[i] >= x })
if i < len(a) && a[i] == x {
fmt.Printf("found %d at index %d in %v\n", x, i, a)
} else {
fmt.Printf("%d not found in %v\n", x, a)
}
}
```
2018-04-04 10:42:35 +02:00
Anton Kaliaev
39a4963782
document funcs in validator_set.go
2018-04-04 10:42:35 +02:00
Anton Kaliaev
37ce6b195a
ValidatorSet#GetByAddress: return -1 if no validator was found
2018-04-04 10:42:34 +02:00
Ethan Buchman
7aa6d36258
Merge pull request #1412 from tendermint/bucky/exit-conR-subscribe-routine
...
consensus: check for closed subscription channels and exit routine
2018-04-03 23:53:48 +03:00
Ethan Buchman
991017fc41
Merge pull request #1336 from tendermint/zarko/1308-add-light-client-spec
...
Add light client spec
2018-04-03 23:02:32 +03:00
Ethan Buchman
5f548c7679
consensus: close pubsub channels. fixes #1372
2018-04-03 22:57:32 +03:00
Ethan Buchman
d14aacf03e
Merge pull request #1300 from tendermint/lite-proxy-hardening-and-tests
...
lite/proxy: Validation* tests and hardening for nil dereferences
2018-04-03 22:43:38 +03:00
Ethan Buchman
39ff4d22e9
minor cleanup
2018-04-03 22:34:18 +03:00
Jae Kwon
196f8410ba
WIP commit; Fix types/results_test
2018-04-03 07:03:08 -07:00
Anton Kaliaev
8462493cbf
[rpc] fix subscribing using an abci.ResponseDeliverTx tag
...
Refs #1369
2018-04-03 15:53:13 +02:00
Anton Kaliaev
47b8bd1728
wrote a test for EventBus#PublishEventTx
...
Refs #1369
2018-04-03 15:53:13 +02:00
Jae Kwon
89cdde7f1e
Fix state tests
2018-04-03 06:50:53 -07:00
Ethan Buchman
657fd671ea
Merge pull request #1409 from tendermint/zach/docs/tm-monitor
...
docs: build updates
2018-04-03 15:24:55 +03:00
Zach Ramsay
315c475b79
docs: build updates
...
ref: https://github.com/tendermint/tools/pull/79
2018-04-03 04:48:40 -07:00
Javed Khan
5ef639fcbe
p2p: persistent - redial if first dial fails
...
Fixes #1401
2018-04-03 09:27:06 +05:30
Anton Kaliaev
b800b4ec1d
update docker readme
2018-04-02 16:57:25 +02:00
Anton Kaliaev
208ac32fa2
update Dockerfile to point to 0.17.1 release
2018-04-02 16:56:07 +02:00
Anton Kaliaev
641476d40f
update docker to use alpine 3.7
2018-04-02 16:55:43 +02:00
Anton Kaliaev
491c8ab4c1
[rpc/lib] log cert and key files in StartHTTPAndTLSServer
2018-04-02 15:21:05 +02:00
Anton Kaliaev
5ef8a6e887
deprecate not fully formed addresses
2018-04-02 15:21:05 +02:00
Anton Kaliaev
d694d47d22
[rpc/lib] rename vars according to Go conventions
2018-04-02 15:21:05 +02:00
Zaki Manian
ecdc1b9bb0
Add a method for creating an https server ( #1403 )
2018-04-02 11:36:09 +02:00
Anton Kaliaev
9c757108ca
[test] remove test_libs
...
Reasons:
1) all deps we're using should be passing tests (including external)
2) deps can require complicated setup for testing
3) the person responsible for releasing Tendermint should be cautious
when updating a dep
2018-04-02 11:29:03 +02:00
Anton Kaliaev
5243e54641
[codecov] ignore docs, scripts and DOCKER dirs
2018-04-02 11:23:56 +02:00
Ethan Buchman
70e7454c21
comment out test_libs because of gcc dep in tmlibs
2018-04-02 11:23:56 +02:00
Thomas Corbière
2644a529f0
Fix lint errors ( #1390 )
...
* use increment and decrement operators.
* remove unnecessary else branches.
* fix package comment with leading space.
* fix receiver names.
* fix error strings.
* remove omittable code.
* remove redundant return statement.
* Revert changes (code is generated.)
* use cfg as receiver name for all config-related types.
* use lsi as the receiver name for the LastSignedInfo type.
2018-04-02 10:21:17 +02:00
Greg Szabo
eaee98ee1f
CGO_ENABLED=0 added for static linking ( #1396 )
2018-04-01 19:54:48 +02:00
Jae Kwon
35a1d747b0
Fix mempool
2018-03-31 11:51:32 +02:00
Jae Kwon
34974e3932
Make types use Amino; Refactor PrivValidator* to FilePV/SocketPV
2018-03-31 00:18:43 +02:00
Alex Hernandez
575a46d9d4
fix typo on block header ( #1387 )
2018-03-29 11:28:29 +02:00
Ethan Buchman
bcadbd1b10
Merge pull request #1376 from tendermint/1368-unsubscribe-does-not-work
...
[rpc] unsubscribe does not work
2018-03-28 15:13:40 -04:00
Tomoya Ishizaki
ead9daf1ba
Fix code style ( #1362 )
...
* cfg: Uniform style for method args and var names
2018-03-28 13:40:47 -04:00
Anton Kaliaev
22949e6dfd
new tmlibs Parallel implementation
2018-03-28 19:13:08 +02:00
Anton Kaliaev
49986b05bc
update tmlibs
...
Refs #1376
2018-03-28 19:12:52 +02:00
Vladislav Dmitriyev
2fa7af4614
[lite] fixed listen address ( #1384 )
2018-03-28 15:59:09 +02:00
Anton Kaliaev
2d857c4b1b
add hash field to ResultTx (/tx and /tx_search endpoints) ( #1374 )
...
Refs #1367
2018-03-28 15:44:58 +02:00
Anton Kaliaev
2b63f57b4c
fix tx_indexer's matchRange
...
before we're using IteratePrefix, which is wrong because we want full
range, not just "account.number=1".
2018-03-28 15:02:54 +02:00
Anton Kaliaev
4085c72496
sort /tx_search results by height by default
...
Refs #1366
2018-03-28 15:02:54 +02:00
Eugene Chung
34f5d439ee
remove Heap.Update() call when setting Proposer field
...
In for loop of IncrementAccum(), Heap.Update() call is unnecessary when i == times - 1.
2018-03-28 12:58:53 +09:00
Ethan Buchman
6f9956990c
Merge pull request #1377 from tendermint/release/0.17.1
...
Release/0.17.1
v0.17.1
2018-03-27 11:24:48 -04:00