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
Emmanuel Odeke
068f01368f
blockchain/reactor: respondWithNoResponseMessage for missing height
Fixes #514
Replaces #540
If a peer requests a block with a height that we don't have
respond with a bcNoBlockResponseMessage.
However, according to the Tendermint spec, if all nodes are honest
this condition shouldn't occur, so this is a possible hint of an
dishonest node.
7 years ago
Ethan Buchman
8c6bd44929
log stack trace on consensus failure
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
Ethan Buchman
29bfcb0a31
minor comments/changes
7 years ago
Ethan Buchman
aea8629272
peer interface
7 years ago
ramil
6f8d385dfa
fast sync status
8 years ago
Adrian Brink
05c0dfac12
First crack it providing fast-sync endpoint
8 years ago
Ethan Buchman
3c0128a680
undo some megacheck suggestions
8 years ago
Anton Kaliaev
b4ece65726
standardize key for errors (should be "err")
8 years ago
zramsay
cf31f8d06f
core: apply megacheck vet tool (unused, gosimple, staticcheck)
8 years ago
Anton Kaliaev
f803544195
new logging
8 years ago
Ethan Buchman
75b6c5215f
fewer structs. remove viper from consensus
8 years ago
Ethan Buchman
29c0e6e4f4
remove viper from blockchain and state
8 years ago
Ethan Buchman
fcf78a5da7
cleanup go-config/viper and some unnamed imports
8 years ago
Rigel Rozanski
cefb2bede0
adding viper
int
int
8 years ago
Ethan Buchman
56c60fba23
go-p2p -> tendermint/p2p
8 years ago
Ethan Buchman
d1926bcad1
use tmlibs
8 years ago
Ethan Buchman
cb279bf662
state: ABCIResponses, s.Save() in ApplyBlock
8 years ago
Anton Kaliaev
2c724d5eee
remove warning messages in favor of "Send failed"
8 years ago
Anton Kaliaev
6dbe9febce
log warning if peer send failed (Refs #174 )
make lint happy
remove dead code
remove not needed go-common dependency
check peer.Send failures (Refs #174 )
8 years ago
Ethan Buchman
f9df4294f3
move some interfaces to types/services.go
8 years ago
Ethan Buchman
2425711734
blockchain: use ApplyBlock
8 years ago
Ethan Buchman
5046d5b181
more handshake replay cleanup
8 years ago
Ethan Buchman
655b6300f5
val set changes
8 years ago
Jae Kwon
d83fc02597
MakePartSet takes partSize from config. fix replay test
8 years ago
Jae Kwon
1173a85c85
Use BlockID everywhere
8 years ago
Ethan Buchman
7d493774c7
log: move some Info to Debug
8 years ago
Ethan Buchman
71baad59df
replay: ensure cs.height and wal.height match
8 years ago
Ethan Buchman
35d4cca8bb
type safe events
8 years ago
Ethan Buchman
bf7ba17932
test/p2p: name client conts so we dont need to rm them because circle
8 years ago
Ethan Buchman
7bec333017
fix fast sync
8 years ago
Ethan Buchman
3a7ee13ece
proxy: typed app conns
8 years ago
Ethan Buchman
ca674304c5
fix blockpool races. closes #188
9 years ago
Jae Kwon
f17c4c1d57
s/Validation/Commit/g
9 years ago
Jae Kwon
d5ab243cfd
Fix #198 ; Do not fast-sync when lone validator
9 years ago
Ethan Buchman
50ac66f79b
fast sync fixes
9 years ago
Ethan Buchman
0be13d1d27
move alert, events, rpc into own repos
9 years ago
Jae Kwon
3e3c0083c7
Make order be decided first; Remove TMSP Commit/Rollback
9 years ago
Jae Kwon
6132017f82
Remove mempool log bypass
9 years ago
Jae Kwon
dcc1caaf68
Make Receive() logging consistent
9 years ago
Jae Kwon
d87667a0c2
Conform to go-wire new TypeByte behavior for broadcasts
9 years ago
Jae Kwon
08d7980d80
Conform to go-wire new TypeByte behavior
9 years ago
Ethan Buchman
b9e143d956
Fireable -> EventSwitch; rs in EventDataRoundState; fixes from review
9 years ago
Jae Kwon
3da76496b0
Fix BlockchainReactor bug w/ mismatched state.LastBlockHeight vs store.Height
This is due to a non-atomic saves of state.State vs blockchain.Store.
This is a simple hack.
9 years ago
Jae Kwon
ef43af19ab
Tendermint <-> Application refactor
9 years ago
Jae Kwon
d69b5c5ab6
Conform to go-wire 1.0
9 years ago