Anton Kaliaev
5fab8e404d
replace magic number with blocksToContributeToBecomeGoodPeer const
Refs #1317
7 years ago
Anton Kaliaev
86ddf17db0
add a todo
Refs #1281
7 years ago
Anton Kaliaev
a655500047
fix copy-pasted comment [ci skip]
7 years ago
Anton Kaliaev
714f885dac
mark peer as good if it contributed enough votes or block parts
Refs #1147
7 years ago
Anton Kaliaev
b0d8f552c5
return err if peer has sent a vote that does not match our round
7 years ago
Anton Kaliaev
63cb69cb96
comment out ErrAddingVote because it breaks byzantine_test
7 years ago
Anton Kaliaev
266974cb59
stop peer if it sends invalid vote
7 years ago
Anton Kaliaev
4242352852
stop peer on decoding error
7 years ago
Ethan Frey
fff0c6cd8e
Add app_state from genesis file in InitChain message
7 years ago
Ethan Buchman
5378bfc5c7
types.SignBytes -> o.SignBytes
7 years ago
Ethan Buchman
ca3655a409
types: p2pID -> P2PID
7 years ago
Zarko Milosevic
d4e93a6de3
Separate ValidBlock rule from unlocking rule
7 years ago
Zarko Milosevic
4670857c15
Add support for ValidBlock mechanism for the simplest case
7 years ago
Zach
2cc63069c6
rename dummy to kvstore ( #1223 )
* remove accidental binary
* docs: s/Dummy&dummy/KVStore&kvstore/g
* glide update to abci
* update abci import paths
* dummy begone, hello kvstore
* RequestInitChain needs genesisBytes
* glide update
7 years ago
Zach Ramsay
3cd604562c
RequestInitChain needs genesisBytes
7 years ago
Anton Kaliaev
2a24ae90c1
fixes from Jae's review
1. remove pointer
2. add Quit() method to Service interface
7 years ago
Ethan Buchman
d34286c421
minor fixes - tests pass
7 years ago
Ethan Buchman
e7747f7d66
it compiles
7 years ago
Ethan Buchman
cd0fd06b0d
update for sdk2 libs. need to fix kv test
NOTE we only updating for tmlibs and abci
7 years ago
Ethan Buchman
ab13806276
consensus: print go routines in failed test
7 years ago
Ethan Buchman
3ae26bd6e6
consensus: fix SetLogger in tests
7 years ago
Ethan Buchman
87087b8acd
consensus: minor cosmetic
7 years ago
Ethan Buchman
ee674f919f
StopPeerForError in blockchain and consensus
7 years ago
Ethan Buchman
6f3d9b4be3
fix race
7 years ago
Ethan Buchman
f06cc6630b
mempool: cfg.CacheSize and expose InitWAL
7 years ago
Ethan Buchman
8171628ee5
make tests run faster
7 years ago
Ethan Buchman
1cb76625d3
consensus: rename test funcs
7 years ago
Ethan Buchman
a17105fd46
p2p: peer.Key -> peer.ID
7 years ago
Ethan Buchman
ff99ca7cdf
bump wal test timeout
7 years ago
Ethan Buchman
6112578d07
ValidateBlock is a method on blockExec
7 years ago
Ethan Buchman
ae68fcb78a
move fireEvents to ApplyBlock
7 years ago
Ethan Buchman
1d6f00859d
fixes from review
7 years ago
Ethan Buchman
537b0dfa1a
use NopEventBus
7 years ago
Ethan Buchman
0acca7fe69
final updates for state
7 years ago
Ethan Buchman
f55135578c
state: move methods to funcs
7 years ago
Ethan Buchman
a8e625e99d
config: unexpose chainID
7 years ago
Zach Ramsay
9da5cd0180
rebase fix
7 years ago
Zach Ramsay
70ba608850
config: write all default options to config file
config: test the default file
docs: spiff up config
config: minor fixes & comments
config: simplify test
config; use a seperate config directory, #556
config: update docs & parameterize file paths
config: PR comments
config: use the default object
fix a rebase error
7 years ago
Anton Kaliaev
75182f7205
change directory for each call, not only for each test
Fixes #1026
7 years ago
Ethan Buchman
7d81a3f4a5
address some comments from review
7 years ago
Ethan Buchman
6a4fd46479
fixes from rebase
7 years ago
Ethan Buchman
1d021c2790
update consensus/test_data/many_blocks.cswal
7 years ago
Ethan Buchman
869d873d5c
state.ApplyBlock takes evpool and calls MarkEvidenceAsCommitted
7 years ago
Ethan Buchman
7a18fa887d
evidence linked with consensus/node. compiles
7 years ago
Ethan Buchman
f7731d38f6
some comments and cleanup
7 years ago
Ethan Buchman
10c43c9edc
introduce evidence store
7 years ago
Ethan Buchman
fe4b53a463
EvidencePool
7 years ago
Ethan Buchman
7d086e9524
check if we already have evidence
7 years ago
Ethan Buchman
6e9433c7a8
post rebase fix
7 years ago
Ethan Buchman
39299e5cc1
consensus: note about duplicate evidence
7 years ago