Ethan Buchman
4b9dfc8990
consensus: fix for initializing block parts during catchup
7 years ago
Ethan Buchman
47f5e37205
copy RoundState for event
7 years ago
Anton Kaliaev
6d18e2f447
do not send whole round state via eventHub
Fixes
```
WARNING: DATA RACE
Write at 0x00c4200715b8 by goroutine 24:
github.com/tendermint/tendermint/consensus.(*ConsensusState).enterPrevote.func1()
/go/src/github.com/tendermint/tendermint/consensus/state.go:359 +0x3f
github.com/tendermint/tendermint/consensus.(*ConsensusState).enterPrevote()
/go/src/github.com/tendermint/tendermint/consensus/state.go:897 +0x8de
github.com/tendermint/tendermint/consensus.(*ConsensusState).addProposalBlockPart()
/go/src/github.com/tendermint/tendermint/consensus/state.go:1303 +0x701
github.com/tendermint/tendermint/consensus.(*ConsensusState).handleMsg()
/go/src/github.com/tendermint/tendermint/consensus/state.go:560 +0x88c
github.com/tendermint/tendermint/consensus.(*ConsensusState).receiveRoutine()
/go/src/github.com/tendermint/tendermint/consensus/state.go:525 +0x6d2
Previous read at 0x00c4200715b8 by goroutine 19:
github.com/tendermint/tendermint/consensus.makeRoundStepMessages()
/go/src/github.com/tendermint/tendermint/consensus/reactor.go:415 +0x192
github.com/tendermint/tendermint/consensus.(*ConsensusReactor).broadcastNewRoundStep()
/go/src/github.com/tendermint/tendermint/consensus/reactor.go:377 +0x3c
github.com/tendermint/tendermint/consensus.(*ConsensusReactor).broadcastNewRoundStepsAndVotes.func1()
/go/src/github.com/tendermint/tendermint/consensus/reactor.go:350 +0x275
```
7 years ago
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
7 years ago
Jae Kwon
1b9fd811a1
RPCResponse.Result && EventData are registered interfaces; -skip_upnp option
10 years ago
Jae Kwon
3be3647dc8
tendermint/binary -> tendermint/wire
10 years ago
Jae Kwon
1e7cc32597
tendermint/account -> acm
10 years ago
Ethan Buchman
dc7b912881
crypto byte arrays are fixed length
10 years ago
Jae Kwon
9965dd5de6
uint* to int* whereever appropriate; https://www.reddit.com/r/golang/comments/2q5vdu/int_vs_uint/
10 years ago
Jae Kwon
9e1794eaea
Fixed tests
10 years ago
Jae Kwon
9b96e2e171
ProposalPOLRound...
10 years ago
Jae Kwon
01b5540ffe
consensus/state is 2-step asynchronous
10 years ago
Ethan Buchman
41502e05c1
chain_id written as string not hex in WriteSignBytes
10 years ago
Ethan Buchman
2045aee9cd
pass chainID through sign interfaces
10 years ago
Ethan Buchman
8a2d9525f0
network > chain_id, put in genesis.json
10 years ago
Jae Kwon
489bf767cb
importing tendermint/config/tendermint_test applies the test config
10 years ago
Jae Kwon
75ef479547
Config is passed into each module. Remove tendermint/confer
10 years ago
Jae Kwon
85c8850ac2
Config names have no dots, are under_scored.
10 years ago
Jae Kwon
b92c0401e6
Made all JSON fields lower_case
10 years ago
Jae Kwon
5366d808ba
Proposal WriteSignBytes is JSON
10 years ago
Jae Kwon
2ba6f86f2e
Add Network to SignBytes, to prevent network clashes
10 years ago
Jae Kwon
13b6508ecd
Package import path change
10 years ago
Ethan Buchman
60f166e823
tendermint2
10 years ago
Jae Kwon
87e1f76324
tendermint/block -> tendermint/types and tendermint/blockchain
10 years ago
Jae Kwon
0a6c28c2da
block module -> import as blk
10 years ago
Jae Kwon
135894ea88
Dot import -> named import
Changed modulename_ to short module names
Also removed Unreader, replaced with PrefixdReader in select locations
10 years ago
Jae Kwon
383335d93c
Added README docs for account/binary and renamed UInt -> Uint etc.
10 years ago
Jae Kwon
61d1635085
Fixed tests
10 years ago