909f66e841
remove extra eventBus
2018-06-05 22:04:27 -07:00
3d2c4fd309
update Evidence type - requires pubkey and valset to verify and convert to abci.Evidence
2018-06-05 22:04:26 -07:00
866bcceb35
fix consensus tests
2018-06-05 22:00:25 -07:00
7606b7595f
compiles
2018-06-05 22:00:25 -07:00
825fdf2c24
Merge pull request #1679 from tendermint/flush-wal-on-stop
...
Flush cs.wal on stop
2018-06-05 17:14:19 -07:00
3d33226e80
move types/services.go to state pkg. pass State to evpool.Update
2018-06-04 21:20:23 -07:00
3445f1206e
Merge pull request #1683 from tendermint/bucky/test
...
fix byz-test
2018-06-04 21:09:10 -07:00
097f778c1e
fix byz-test
2018-06-04 20:48:35 -07:00
1f22f34edf
flush wal group on stop
...
Refs #1659
Refs https://github.com/tendermint/tmlibs/pull/217
2018-06-04 16:47:44 +04:00
bf370d36c2
Extract priv_validator into first class package
...
This is a maintenance change to move the private validator package out
of the types and to a top-level location. There is no good reason to
keep it under the types and it will more clearly coommunicate where
additions related to the privval belong. It leaves the interface and the
mock in types for now as it would introduce circular dependency between
privval and types, this should be resolved eventually.
* mv priv_validator to privval pkg
* use consistent `privval` as import
Follow-up to #1255
2018-06-03 13:51:58 +02:00
708f35e5c1
do not look for height in older files if we've seen height - 1
...
Refs #1600
2018-05-25 15:11:15 +04:00
f3f5c7f472
we must only return io.EOF to progress to the next file in auto.Group
...
since we never write msg partially, if we've encountered io.EOF in the
middle of the msg, we must abort
2018-05-25 15:10:51 +04:00
68f6226bea
data is corrupted, but this requires manual intervention
...
i.e., can't be skipped
and we should only return DataCorruptionError if we can skip a msg safely
2018-05-25 15:10:51 +04:00
118b86b1ef
fix nil panic error
...
msg is nil and if we continue executing, we'll get nil exception at
`msg.Msg.(....)`
2018-05-25 15:10:51 +04:00
b9afcbe3a2
fix typo
2018-05-25 15:10:51 +04:00
a885af0826
Merge pull request #1574 from tendermint/847-separate-internal-pubsub
...
[pubsub] Prioritise internal subscribers (e.g. reactor) over external (e.g. RPC)
2018-05-24 21:09:56 +04:00
3a947b0117
Merge pull request #1619 from tendermint/zach/cleaner-repo
...
clean up links & spec docs
2018-05-23 21:09:15 -04:00
caf5afc084
Merge pull request #1520 from tendermint/bucky/p2p-same-ip
...
p2p: prevent connections from same ip
2018-05-23 20:57:17 -04:00
b166831fb5
link to both consensus specs
2018-05-23 10:05:03 -04:00
b4d10b5b91
consensus: link to spec from readme ( #1609 )
2018-05-23 09:41:54 -04:00
c6f612bfc3
subscribe before state emits NewRoundStep
...
I had to alter events package for that. Hope that's fine.
Refs #847
2018-05-21 10:51:47 +04:00
bb9aa85d22
copy events and pubsub packages from tmlibs
...
Refs #847
2018-05-21 10:51:47 +04:00
c4fef499b6
switch to events package
2018-05-21 10:50:55 +04:00
b77d5344fc
rename methods for clarity
2018-05-21 10:50:55 +04:00
21f5f3faa7
use channels to send votes, ... from consensus state to reactor
...
Refs #847
2018-05-21 10:50:55 +04:00
ee4eb59355
update comments
2018-05-20 16:44:08 -04:00
082a02e6d1
consensus: only fsync wal after internal msgs
2018-05-20 14:40:47 -04:00
547e8223b9
fix
2018-05-17 15:24:37 -04:00
8e46df14e7
improve consensus logger
2018-05-17 13:59:41 -04:00
e5220360c5
AddPart always verifies
2018-05-17 13:17:50 -04:00
b698a9febc
Remove double locking in HasIP
2018-05-16 19:21:12 +02:00
e1a3f16fa4
Comment tweaks
2018-05-15 08:48:59 -07:00
162811476a
update some comments
2018-05-14 16:32:19 -04:00
b5ac9ede8a
Add rules in gossipVotesForHeight to clarify priorities on messages to send
2018-05-14 16:18:50 -04:00
ff5dfc0c15
Add more comments for Valid*
2018-05-14 16:18:50 -04:00
d3a98675aa
Refactor addVote() to be clearer
2018-05-14 16:17:21 -04:00
e3c4625e63
Suggested changes to consensus/reactor.go
2018-05-14 16:17:21 -04:00
01ac378c96
Update condition based on Jae input
2018-05-14 16:17:21 -04:00
83ca46396d
Update gossipVotes routine to align with validBlock mechanism
2018-05-14 16:17:21 -04:00
2c125b6c78
Fix validValue rule
2018-05-14 16:17:21 -04:00
e9804d76cf
fixes from review
2018-05-14 10:33:31 -04:00
a41f0d3891
rpc: /consensus_state for simplified output
2018-05-13 19:53:54 -04:00
658060150c
rpc: add voting power totals to vote bitarrays
2018-05-13 19:22:23 -04:00
56c9e0da7e
Add back sample output in rpc/core/consensus.go; Tweak DumpConsensusState output for peers
2018-05-12 15:39:30 -07:00
edbec10f9e
Expose peer stats for dump_consensus_state
2018-05-10 22:43:21 -07:00
f33da8817a
rpc: lower_case peer_round_states, use a list, add the node_address
2018-04-27 23:00:09 -04:00
25cee8827a
Merge branch 'develop' into 1428-remove-wal-light
2018-04-27 12:06:08 -04:00
65ebbccb74
Add GoAmino DeepCopy() benchmark for RoundState
2018-04-27 11:55:45 -04:00
f67c5a9e7b
forgot wire.go file
2018-04-27 10:00:34 -04:00
a2d77cbe4e
add MarshalJSON methods to fix dump_consensus_state
2018-04-26 23:43:48 -04:00