Anca Zamfir
714ac4fc46
small fixes to adr, comments and cleanup
2019-05-08 22:23:23 -04:00
Anca Zamfir
299a7f3c0a
Added termination scenarios, tests and more cleanup
2019-05-08 18:28:18 -04:00
Anca Zamfir
af90cb4f2d
cleanup
2019-05-07 21:06:43 -04:00
Anca Zamfir
02c34994fc
updating docs and cleanup
2019-04-30 21:46:27 -04:00
Anca Zamfir
8ef2f6b5f2
Added timeout on next block needed to advance
2019-04-28 22:03:26 -04:00
Anca Zamfir
bb36184aa2
cleanup
2019-04-15 23:26:07 -04:00
Anca Zamfir
0541ecb243
fixed data race in tests
2019-04-14 22:53:24 -04:00
Anca Zamfir
0c84d780d7
switch fast sync to new implementation
2019-04-13 09:23:43 -04:00
Anca Zamfir
8a9eecce7f
test blockExec does not panic if all vals removed ( #3241 )
...
Fix for #3224
Also address #2084
2019-02-12 09:02:44 +04:00
Anton Kaliaev
7fd51e6ade
make govet linter pass ( #3292 )
...
* make govet linter pass
Refs #3262
* close PipeReader and check for err
2019-02-11 16:31:34 +04:00
Zach
2182f6a702
update go version & other cleanup ( #3018 )
...
* update go version & other cleanup
* fix lints
* go one.eleven.four
* keep circle on 1.11.3 for now
2018-12-17 11:51:53 -05:00
Ethan Buchman
47a0669d12
Fix fast sync stack with wrong block #2457 ( #2731 )
...
* fix fastsync may stuck by a wrong block
* fixes from updates
* fixes from review
* Align spec with the changes
* fmt
2018-11-26 15:31:11 -05:00
Anton Kaliaev
fb91ef7462
validate reactor messages ( #2711 )
...
* validate reactor messages
Refs #2683
* validate blockchain messages
Refs #2683
* validate evidence messages
Refs #2683
* todo
* check ProposalPOL and signature sizes
* add a changelog entry
* check addr is valid when we add it to the addrbook
* validate incoming netAddr (not just nil check!)
* fixes after Bucky's review
* check timestamps
* beef up block#ValidateBasic
* move some checks into bcBlockResponseMessage
* update Gopkg.lock
Fix
```
grouped write of manifest, lock and vendor: failed to export github.com/tendermint/go-amino: fatal: failed to unpack tree object 6dcc6ddc143e116455c94b25c1004c99e0d0ca12
```
by running `dep ensure -update`
* bump year since now we check it
* generate test/p2p/data on the fly using tendermint testnet
* allow sync chains older than 1 year
* use full path when creating a testnet
* move testnet gen to test/docker/Dockerfile
* relax LastCommitRound check
Refs #2737
* fix conflicts after merge
* add small comment
* some ValidateBasic updates
* fixes
* AppHash length is not fixed
2018-11-01 02:07:18 -04:00
Anton Kaliaev
0e1cd88863
Remove ConsensusParams.TxSize and ConsensusParams.BlockGossip ( #2364 )
...
* remove ConsensusParams.TxSize and ConsensusParams.BlockGossip
Refs #2347
* block part size is now fixed
Refs #2347
* use max data size, not max bytes for tx limit
Refs #2347
2018-09-12 15:44:43 -04:00
peerlink
3624a17642
blockchain: fix register concrete name. ( #2213 )
2018-08-13 17:40:49 +04:00
Dev Ojha
2756be5a59
libs: Remove usage of custom Fmt, in favor of fmt.Sprintf ( #2199 )
...
* libs: Remove usage of custom Fmt, in favor of fmt.Sprintf
Closes #2193
* Fix bug that was masked by custom Fmt!
2018-08-10 09:25:57 +04:00
VenkatDatta
188e459273
Removed unnecessary onStart call ( #2098 )
...
* Removed unnecessary onStart & onStop calls in reactor
* Refactor OnStart & OnStop in reactor
* Removed redundant OnStart func in reactor
2018-07-29 09:46:53 +04:00
Ethan Buchman
e1b48b16c4
Merge branch 'develop' into jae/optimize_blockchain
2018-07-23 22:16:34 -04:00
Anton Kaliaev
9120fd5d14
unexport DecodeMessage functions
...
Refs #646
2018-07-09 13:01:23 +04:00
Ethan Buchman
d55243f0e6
fix import paths
2018-07-01 22:36:49 -04:00
Jae Kwon
8128627f08
Optimizing blockchain reactor.
...
Should be paired with https://github.com/tendermint/iavl/pull/65 .
2018-06-22 21:47:48 -07:00
Ethan Buchman
1a1e4e767b
check max msg size in DecodeMessage
2018-04-09 15:18:47 +03:00
Ethan Buchman
c170800fbd
Merge branch 'develop' into jae/aminoify
2018-04-07 16:16:53 +03:00
Jae Kwon
fb64314d1c
Review from Anton
2018-04-06 13:46:40 -07:00
Jae Kwon
196f8410ba
WIP commit; Fix types/results_test
2018-04-03 07:03:08 -07:00
Anton Kaliaev
701df09971
do not use keywords
...
Refs #1317
2018-03-19 13:16:02 +03:00
Anton Kaliaev
bcf54b0aa3
PanicSanity is deprecated
2018-03-15 11:58:20 +04:00
Anton Kaliaev
4242352852
stop peer on decoding error
2018-03-15 11:58:19 +04:00
Anton Kaliaev
f299689573
return back defaultChannelCapacity
2018-03-15 11:58:19 +04:00
Anton Kaliaev
0c7e871ef0
[blockchain] replace timeoutsCh with more abstract errorsCh
2018-03-15 11:58:19 +04:00
Anton Kaliaev
2a24ae90c1
fixes from Jae's review
...
1. remove pointer
2. add Quit() method to Service interface
2018-02-12 14:32:09 +04:00
Ethan Buchman
ee674f919f
StopPeerForError in blockchain and consensus
2018-01-21 13:32:04 -05:00
Adrian Brink
0eb85161aa
More specification
2018-01-21 12:35:09 -05:00
Adrian Brink
940145b368
Bullet points for reactor and poolRoutine
2018-01-21 12:32:45 -05:00
Adrian Brink
a30315276b
Formatting and documentation
2018-01-21 12:32:23 -05:00
Ethan Buchman
a17105fd46
p2p: peer.Key -> peer.ID
2018-01-01 22:39:05 -05:00
Ethan Buchman
ae68fcb78a
move fireEvents to ApplyBlock
2017-12-28 23:15:54 -05:00
Ethan Buchman
bac60f2067
blockchain: update for new state
2017-12-28 23:15:54 -05:00
Ethan Buchman
869d873d5c
state.ApplyBlock takes evpool and calls MarkEvidenceAsCommitted
2017-12-26 20:27:32 -05:00
Ethan Buchman
3d00c477fc
separate block vs state based validation
2017-12-21 16:49:47 -05:00
Anton Kaliaev
843e1ed400
Updates -> ValidatoSetUpdates
2017-12-19 13:03:39 -06:00
Anton Kaliaev
922af7c405
int64 height
...
uint64 is considered dangerous. the details will follow in a blog post.
2017-12-01 19:04:53 -06:00
Anton Kaliaev
3eb069a50c
no need in this hack since we have replay now
2017-12-01 17:17:22 -05:00
Anton Kaliaev
b3492356e6
uint64 height (Refs #911 )
2017-12-01 17:17:22 -05:00
Anton Kaliaev
69b5da766c
service#Start, service#Stop signatures were changed
...
See https://github.com/tendermint/tmlibs/issues/45
2017-11-29 10:38:58 -06:00
Zach Ramsay
d7cb291fb2
errcheck; sort some stuff out
2017-11-27 22:39:11 +00:00
Zach Ramsay
68e7983c70
linting errors: afew more
2017-11-27 22:39:11 +00:00
Zach Ramsay
57ea4987f7
linting: apply errcheck part1
2017-11-27 22:39:11 +00:00
Zach Ramsay
46ccbcbff6
linting: apply 'gofmt -s -w' throughout
2017-11-27 22:39:11 +00:00
Ethan Buchman
12b25fdf6e
blockchain: add comment in AddPeer. closes #666
2017-11-08 02:42:27 +00:00