Anton Kaliaev
1971e149fb
ChainID() and Params() do not return errors
- remove state#GenesisDoc() method
7 years ago
Emmanuel Odeke
7939d62ef0
all, state: unexpose GenesisDoc, ChainID fields make them accessor methods
Fixes #671
Unexpose GenesisDoc and ChainID fields to avoid them being
serialized to the DB on every block write/state.Save()
A GenesisDoc can now be alternatively written to the state's
database, by serializing its JSON as a value of key "genesis-doc".
There are now accessors and a setter for these attributes:
- state.GenesisDoc() (*types.GenesisDoc, error)
- state.ChainID() (string, error)
- state.SetGenesisDoc(*types.GenesisDoc)
This is a breaking change since it changes how the state's
serialization and requires that if loading the GenesisDoc entirely
from the database, you'll need to set its value in the database
as the GenesisDoc's JSON marshaled bytes.
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
Zach Ramsay
d56b44f3a5
all: no more anonymous imports
7 years ago
Ethan Buchman
8c6bd44929
log stack trace on consensus failure
7 years ago
Ethan Buchman
8311f5c611
abci.Info takes a struct; less merkleeyes
7 years ago
Ethan Buchman
75b97a5a65
PrivValidatorFS is like old PrivValidator, for now
7 years ago
Ethan Buchman
779c2a22d0
node: NewNode takes DBProvider and GenDocProvider
7 years ago
Ethan Buchman
4382c8d28b
fix tests
7 years ago
Ethan Buchman
944ebccfe9
more PrivValidator interface
7 years ago
Ethan Buchman
fd1b0b997a
PrivValidator interface
7 years ago
Adrian Brink
7dd3c007c7
Refactor priv_validator
Users can now just pass an object that implements the Signer interface.
7 years ago
Ethan Buchman
3089bbf2b8
Amount -> Power. Closes #166
7 years ago
Ethan Buchman
5feeb65cf0
dont use pointers for ConsensusParams
7 years ago
Ethan Buchman
3a03fe5a15
updated to match adr 005
7 years ago
Ethan Buchman
2b6db268cf
genesis json tests and mv ConsensusParams to types
7 years ago
Ethan Buchman
1f3e4d2d9a
move PartSetSize out of the config, into ConsensusParams
7 years ago
Zach Ramsay
70b95135e6
consensus: use filepath for windows compatibility, closes #595
7 years ago
Ethan Buchman
90c0267bc1
types: privVal.Sign returns an error
7 years ago
Ethan Buchman
aea8629272
peer interface
7 years ago
Ethan Buchman
399fb9aa70
consensus: remove support for replay by #HEIGHT. closes #567
7 years ago
Ethan Buchman
78446fd99c
state: persist validators
7 years ago
Ethan Buchman
9ceccbe9a4
consensus: recover panics in receive routine
7 years ago
Ethan Buchman
35a4912449
dont panic on getVoteBitArray
7 years ago
Ethan Buchman
c5a657f540
consensus: test proposal heartbeat
7 years ago
Ethan Buchman
c9e11de2a7
consensus: log ProposalHeartbeat msg
7 years ago
Ethan Buchman
b0728260e9
comments
7 years ago
Ethan Buchman
92ada55e5a
make conR.FastSync() thread safe
7 years ago
Ethan Buchman
0bf66deb3c
fixes from review
7 years ago
Ethan Buchman
d2f3e9faf4
test CreateEmptyBlocksInterval
7 years ago
Ethan Buchman
37f1390473
CreateEmptyBlocks and CreateEmptyBlocksInterval
7 years ago
Ethan Buchman
fb47ca6d35
fixes from review
7 years ago
Ethan Buchman
b8ac67e240
some fixes
7 years ago
Ethan Buchman
ab753abfa0
Proposer->Proposal; sign heartbeats
7 years ago
Ethan Buchman
10f8101314
fix race
7 years ago
Ethan Buchman
530626dab7
broadcast proposer heartbeat msg
7 years ago
Ethan Buchman
b96d28a42b
test progress in higher round
7 years ago
Ethan Buchman
3444bee47f
fixes from review; use mempool.TxsAvailable() directly
7 years ago
Ethan Buchman
cf3abe5096
consensus: remove rs from handleMsg
7 years ago
Ethan Buchman
ecdda69fab
commit empty blocks when needed to prove app hash
7 years ago
Ethan Buchman
fc3fe9292f
fixes from review
7 years ago
Ethan Buchman
678a9a2e42
TxsAvailable tests
7 years ago
Ethan Buchman
124032e3e9
NoEmptyBlocks config option
7 years ago
Ethan Buchman
4beac54bd9
no empty blocks
7 years ago
Ethan Buchman
39493bcd9a
consensus: isProposer func
7 years ago
Ethan Buchman
e9b7221292
consensus: more comments
7 years ago
ramil
6f8d385dfa
fast sync status
7 years ago
Ethan Buchman
5f6b996d22
breakup some long lines; add more comments to consensus reactor
7 years ago
Ethan Buchman
74a3a2b56a
fix comments
7 years ago
Adrian Brink
b07d01f102
Add more comments on public functions and extra logging during 'enterPrevote'
Signed-off-by: Adrian Brink <adrian@brink-holdings.com>
7 years ago