Anton Kaliaev
dc0e8de9b0
extract some of the consensus types into ./types
...
so they can be used in rpc/core/types/responses.go.
```
So, it seems like we could use the actual structs here, but we don't want to have to import consensus to get them, as then clients are importing too much crap. So probably we should move some types from consensus into consensus/types so we can import.
Will these raw messages be identical to:
type ResultDumpConsensusState struct {
RoundState cstypes.RoundState
PeerRoundStates map[string]cstypes.PeerRoundState
}
```
https://github.com/tendermint/tendermint/pull/724#discussion_r143598193
2017-10-10 12:39:21 +04:00
Zach Ramsay
d56b44f3a5
all: no more anonymous imports
2017-10-04 16:40:45 -04:00
Ethan Buchman
75b97a5a65
PrivValidatorFS is like old PrivValidator, for now
2017-09-21 16:46:31 -04:00
Ethan Buchman
779c2a22d0
node: NewNode takes DBProvider and GenDocProvider
2017-09-21 15:54:33 -04:00
Ethan Buchman
4382c8d28b
fix tests
2017-09-21 15:52:25 -04:00
Ethan Buchman
944ebccfe9
more PrivValidator interface
2017-09-21 15:51:20 -04:00
Adrian Brink
7dd3c007c7
Refactor priv_validator
...
Users can now just pass an object that implements the Signer interface.
2017-09-21 15:50:43 -04:00
Ethan Buchman
3089bbf2b8
Amount -> Power. Closes #166
2017-09-21 14:59:27 -04:00
Ethan Buchman
aea8629272
peer interface
2017-09-15 18:40:59 -04:00
Ethan Buchman
c5a657f540
consensus: test proposal heartbeat
2017-08-10 01:24:23 -04:00
Ethan Buchman
d2f3e9faf4
test CreateEmptyBlocksInterval
2017-08-08 16:35:25 -04:00
Ethan Buchman
37f1390473
CreateEmptyBlocks and CreateEmptyBlocksInterval
2017-08-08 16:22:37 -04:00
Ethan Buchman
3444bee47f
fixes from review; use mempool.TxsAvailable() directly
2017-07-28 23:42:43 -04:00
Ethan Buchman
678a9a2e42
TxsAvailable tests
2017-07-28 22:11:45 -04:00
zramsay
cf31f8d06f
core: apply megacheck vet tool (unused, gosimple, staticcheck)
2017-05-29 23:11:40 -04:00
Anton Kaliaev
1dfb95f719
[consensus] color code different consensus instances in consensus tests
...
(Refs #492 )
2017-05-15 09:35:29 +02:00
Anton Kaliaev
f8fdbe3dbc
changes as per Bucky's review
2017-05-13 16:22:51 +02:00
Anton Kaliaev
f803544195
new logging
2017-05-13 10:24:58 +02:00
Ethan Buchman
46151720f8
fix tests
2017-05-04 22:46:41 -04:00
Ethan Buchman
92bafa7ecd
consensus: fix tests
2017-05-04 22:46:13 -04:00
Ethan Buchman
75b6c5215f
fewer structs. remove viper from consensus
2017-05-04 22:43:55 -04:00
Ethan Buchman
07e59e63f9
TMEventDataInner
2017-04-28 17:57:06 -04:00
Ethan Buchman
fcf78a5da7
cleanup go-config/viper and some unnamed imports
2017-04-25 14:54:56 -04:00
Rigel Rozanski
cefb2bede0
adding viper
...
int
int
2017-04-25 13:42:22 -04:00
Ethan Buchman
56c60fba23
go-p2p -> tendermint/p2p
2017-04-21 18:19:41 -04:00
Ethan Buchman
d1926bcad1
use tmlibs
2017-04-21 18:12:54 -04:00
Ethan Buchman
0bec99fbd4
consensus: handshake replay test using wal
2017-02-17 19:12:05 -05:00
Ethan Buchman
c147b41013
TMSP -> ABCI
2017-01-12 15:53:32 -05:00
Ethan Buchman
e7a12f8e38
cs.Wait()
2017-01-12 14:44:42 -05:00
Ethan Buchman
0525e8ed5c
rearrange common_test.go; EnsureDir for privVal
2017-01-12 12:38:09 -05:00
Ethan Buchman
d68cdce2d5
consensus: check HasAll when TwoThirdsMajority
2017-01-11 17:53:46 -05:00
Ethan Buchman
e5fb681615
consensus: remove crankTimeoutPropose from tests
2016-12-22 22:03:42 -05:00
Ethan Buchman
c9698e4848
fixes from review
2016-12-22 22:03:42 -05:00
Ethan Buchman
40b08f2494
consensus: mv timeoutRoutine into TimeoutTicker
2016-12-19 22:29:32 -05:00
Ethan Buchman
faf23aa0d4
consensus: TimeoutTicker, skip TimeoutCommit on HasAll
2016-12-19 15:42:36 -05:00
Ethan Buchman
de6bba4609
test: randConsensusNet takes more args
2016-12-17 14:45:20 -05:00
Ethan Buchman
d800a51da4
test: crank it to eleventy
2016-12-07 20:13:52 -05:00
Ethan Buchman
8df32cd540
test: increase proposal timeout
2016-12-06 19:54:10 -05:00
Ethan Buchman
2f9063c1d6
consensus: test validator set change
2016-11-23 18:20:46 -05:00
Ethan Buchman
e0db20c0cf
update privValidatorIndex on valset change
2016-11-22 20:38:14 -05:00
Ethan Buchman
a3d863f83b
consensus: track index of privVal
2016-11-22 20:38:14 -05:00
Jae Kwon
d83fc02597
MakePartSet takes partSize from config. fix replay test
2016-11-16 01:23:16 -05:00
Ethan Buchman
9d0c7f6ec7
fix bft test. still halts
2016-11-15 18:47:19 -05:00
Ethan Buchman
5f55ed2a40
consensus: ensure dir for cswal on reactor tests
2016-11-15 18:45:36 -05:00
Ethan Buchman
f837252ff1
consensus: test reactor
2016-11-15 18:37:33 -05:00
Jae Kwon
655d829314
Fix proposal sign bytes. Start tracking blockID in POL
2016-11-15 18:35:17 -05:00
Jae Kwon
1173a85c85
Use BlockID everywhere
2016-11-15 18:34:58 -05:00
Jae Kwon
3c5a2f55c2
Add validator index and address to Vote.
2016-11-15 18:33:16 -05:00
Ethan Buchman
3c18d841fa
replay: larger read buffer
2016-10-11 12:51:48 -04:00
Ethan Buchman
35d4cca8bb
type safe events
2016-10-10 03:10:29 -04:00