Anton Kaliaev
e58d674f4c
add validators power gauges
7 years ago
Anton Kaliaev
fad76e103b
extract metrics to provider, remove height label
7 years ago
Anton Kaliaev
489d9b9184
more metrics
7 years ago
Anton Kaliaev
3cdf3b670d
serve metrics under /metrics
7 years ago
Anton Kaliaev
5c869b5888
validator metrics
7 years ago
Anton Kaliaev
5c7093cc9f
go-kit metrics plus prometheus: one metric
7 years ago
Ethan Buchman
a519825bf8
consensus: fixes #1754
* updateToState exits early if the state isn't new, which happens after
* fast syncing. This results in not sending a NewRoundStep message. The mempool
* reactor depends on PeerState, which is updated by NewRoundStep
* messages. If the peer never sends a NewRoundStep, the mempool reactor
* will think they're behind, and never forward transactions. Note this
* only happens when `create_empty_blocks = false`, because otherwise
* peers will move through the consensus state and send a NewRoundStep
* for a new step soon anyways. Simple fix is just to send the
* NewRoundStep message during updateToState even if exit early
7 years ago
ia
b5775b56c6
all: gofmt ( #1743 )
* all: gofmt
Run 'gofmt -w .' from project root.
* Update changelog to say that I ran gofmt
* Revert "Update changelog to say that I ran gofmt"
This reverts commit 956f133ff0
.
7 years ago
Ethan Buchman
9481cabd50
fixes from review
7 years ago
Ethan Buchman
8e45348737
update for abci v0.11.0 release. let InitChain update validators
7 years ago
Ethan Buchman
909f66e841
remove extra eventBus
7 years ago
Ethan Buchman
3d2c4fd309
update Evidence type - requires pubkey and valset to verify and convert to abci.Evidence
7 years ago
Ethan Buchman
866bcceb35
fix consensus tests
7 years ago
Ethan Buchman
7606b7595f
compiles
7 years ago
Ethan Buchman
3d33226e80
move types/services.go to state pkg. pass State to evpool.Update
7 years ago
Ethan Buchman
097f778c1e
fix byz-test
7 years ago
Anton Kaliaev
1f22f34edf
flush wal group on stop
Refs #1659
Refs https://github.com/tendermint/tmlibs/pull/217
7 years ago
Alexander Simmerl
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
7 years ago
Anton Kaliaev
708f35e5c1
do not look for height in older files if we've seen height - 1
Refs #1600
7 years ago
Anton Kaliaev
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
7 years ago
Anton Kaliaev
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
7 years ago
Anton Kaliaev
118b86b1ef
fix nil panic error
msg is nil and if we continue executing, we'll get nil exception at
`msg.Msg.(....)`
7 years ago
Anton Kaliaev
b9afcbe3a2
fix typo
7 years ago
Zach Ramsay
b166831fb5
link to both consensus specs
7 years ago
Zach Ramsay
b4d10b5b91
consensus: link to spec from readme ( #1609 )
7 years ago
Anton Kaliaev
c6f612bfc3
subscribe before state emits NewRoundStep
I had to alter events package for that. Hope that's fine.
Refs #847
7 years ago
Anton Kaliaev
bb9aa85d22
copy events and pubsub packages from tmlibs
Refs #847
7 years ago
Anton Kaliaev
c4fef499b6
switch to events package
7 years ago
Anton Kaliaev
b77d5344fc
rename methods for clarity
7 years ago
Anton Kaliaev
21f5f3faa7
use channels to send votes, ... from consensus state to reactor
Refs #847
7 years ago
Ethan Buchman
ee4eb59355
update comments
7 years ago
Ethan Buchman
082a02e6d1
consensus: only fsync wal after internal msgs
7 years ago
Ethan Buchman
547e8223b9
fix
7 years ago
Ethan Buchman
8e46df14e7
improve consensus logger
7 years ago
Ethan Buchman
e5220360c5
AddPart always verifies
7 years ago
Alexander Simmerl
b698a9febc
Remove double locking in HasIP
7 years ago
Jae Kwon
e1a3f16fa4
Comment tweaks
7 years ago
Ethan Buchman
162811476a
update some comments
7 years ago
Zarko Milosevic
b5ac9ede8a
Add rules in gossipVotesForHeight to clarify priorities on messages to send
7 years ago
Jae Kwon
ff5dfc0c15
Add more comments for Valid*
7 years ago
Jae Kwon
d3a98675aa
Refactor addVote() to be clearer
7 years ago
Jae Kwon
e3c4625e63
Suggested changes to consensus/reactor.go
7 years ago
Zarko Milosevic
01ac378c96
Update condition based on Jae input
7 years ago
Zarko Milosevic
83ca46396d
Update gossipVotes routine to align with validBlock mechanism
7 years ago
Zarko Milosevic
2c125b6c78
Fix validValue rule
7 years ago
Ethan Buchman
e9804d76cf
fixes from review
7 years ago
Ethan Buchman
a41f0d3891
rpc: /consensus_state for simplified output
7 years ago
Ethan Buchman
658060150c
rpc: add voting power totals to vote bitarrays
7 years ago
Jae Kwon
56c9e0da7e
Add back sample output in rpc/core/consensus.go; Tweak DumpConsensusState output for peers
7 years ago
Jae Kwon
edbec10f9e
Expose peer stats for dump_consensus_state
7 years ago