Commit Graph
83 Commits
Author SHA1 Message Date
dea48ca7e0 Update blockchain/v0/reactor.go
Co-authored-by: Anton Kaliaev <anton.kalyaev@gmail.com>
2021-01-14 09:03:19 -05:00
Aleksandr Bezobchuk 630307096b blockchain v0: test updates 2021-01-13 12:22:21 -05:00
Aleksandr Bezobchuk dd15fbd502 blockchain v0: test updates 2021-01-13 12:21:34 -05:00
Aleksandr Bezobchuk de2ee57b16 blockchain v0: test updates 2021-01-13 12:20:16 -05:00
Aleksandr Bezobchuk 0ffbafac0a blockchain v0: test updates 2021-01-13 10:46:30 -05:00
Aleksandr Bezobchuk 5dd1da9ebf blockchain v0: move to constant 2021-01-13 10:37:18 -05:00
c5a126fe9b Update blockchain/v0/reactor_test.go
Co-authored-by: Anton Kaliaev <anton.kalyaev@gmail.com>
2021-01-13 10:30:12 -05:00
Aleksandr Bezobchuk 143fa93d76 blockchain v0: lint++ 2021-01-12 08:57:49 -05:00
Aleksandr Bezobchuk 2201204418 blockchain v0: no-op on empty peer IDs 2021-01-12 08:56:08 -05:00
Aleksandr Bezobchuk 7aff59cd86 blockchain v0: fix test assertion 2021-01-11 16:23:19 -05:00
Aleksandr Bezobchuk a7c624eb2d blockchain v0: lint++ 2021-01-11 14:59:03 -05:00
Aleksandr Bezobchuk 22536ba3cf blockchain v0: decrease max block height 2021-01-11 14:37:04 -05:00
Aleksandr Bezobchuk 1f88c2a31c blockchain v0: attempt test fix 2021-01-11 13:42:03 -05:00
Aleksandr Bezobchuk 67c5516810 blockchain v0: bump test timeout 2021-01-11 10:59:30 -05:00
Aleksandr Bezobchuk 4b09bf9695 blockchain v0: bump test timeout 2021-01-11 10:19:25 -05:00
Aleksandr Bezobchuk 728c1366cc blockchain v0: remove select clause 2021-01-11 09:36:22 -05:00
Aleksandr Bezobchuk 95b08bb775 blockchain v0: add poolWG and refactor pool routines 2021-01-08 14:20:34 -05:00
Aleksandr Bezobchuk 3ac6a6921e blockchain v0: add TestReactor_AbruptDisconnect 2021-01-08 10:26:23 -05:00
Aleksandr Bezobchuk 1fcc3973a0 blockchain v0: update tests 2021-01-08 09:32:17 -05:00
Aleksandr Bezobchuk 31fac447a4 blockchain v0: rename tests 2021-01-08 08:38:37 -05:00
Aleksandr Bezobchuk 88fa8fe348 blockchain v0: update TestBadBlockStopsPeer 2021-01-08 08:38:12 -05:00
Aleksandr Bezobchuk 9039b6cd05 blockchain v0: fix faux router 2021-01-06 19:14:03 -05:00
Aleksandr Bezobchuk bd42353ee5 blockchain v0: refactor TestNoBlockResponse 2021-01-06 13:33:13 -05:00
Aleksandr Bezobchuk 1463bc0be6 blockchain v0: reactor updates 2021-01-06 13:28:05 -05:00
Aleksandr Bezobchuk f021c7df4d Merge branch 'master' into bez/p2p-refactor-blockchain-v0-reactor 2021-01-06 11:55:34 -05:00
Aleksandr Bezobchuk 85569ebb60 blockchain v0: remove BroadcastStatusRequest 2021-01-06 10:25:35 -05:00
Aleksandr Bezobchuk 952cfaa174 blockchain v0: cleanup 2021-01-06 10:15:35 -05:00
Aleksandr Bezobchuk faa0e09f17 blockchain v0: update poolRoutine 2021-01-05 11:13:14 -05:00
Erik GrinakerandGitHub 0555772d3a blockchain/v0: stop tickers on poolRoutine exit (#5860)
Fixes #5841.
2021-01-05 14:45:24 +00:00
Aleksandr Bezobchuk 7a639e5297 blockchain v0: refactor SwitchToFastSync 2021-01-04 16:38:09 -05:00
Aleksandr Bezobchuk c978c8f4ee blockchain v0: refactor BroadcastStatusRequest 2021-01-04 16:36:34 -05:00
Aleksandr Bezobchuk bbf126a79d blockchain v0: refactor Receive 2021-01-04 16:33:17 -05:00
Aleksandr Bezobchuk b48a7f4d7e blockchain v0: initial commit 2021-01-04 14:41:01 -05:00
Erik GrinakerandErik Grinaker 8e7d431f6f p2p: rename ID to NodeID 2021-01-04 11:25:20 +01:00
Anton KaliaevandGitHub aef1ac7ba5 modify Reactor priorities (#5826)
blockchain/vX reactor priority was decreased because during the normal operation
(i.e. when the node is not fast syncing) blockchain priority can't be
the same as consensus reactor priority. Otherwise, it's theoretically possible to
slow down consensus by constantly requesting blocks from the node.

NOTE: ideally blockchain/vX reactor priority would be dynamic. e.g. when
the node is fast syncing, the priority is 10 (max), but when it's done
fast syncing - the priority gets decreased to 5 (only to serve blocks
for other nodes). But it's not possible now, therefore I decided to
focus on the normal operation (priority = 5).

evidence and consensus critical messages are more important than
the mempool ones, hence priorities are bumped by 1 (from 5 to 6).

statesync reactor priority was changed from 1 to 5 to be the same as
blockchain/vX priority.

Refs https://github.com/tendermint/tendermint/issues/5816
2020-12-23 12:31:00 +00:00
Anton KaliaevandGitHub 89e908e340 blockchain/v0: relax termination conditions and increase sync timeout (#5741)
Closes: #5718
2020-12-08 11:33:03 +04:00
Tess RinearsonandGitHub 79890d8393 reactors: omit incoming message bytes from reactor logs (#5743)
After a reactor has failed to parse an incoming message, it shouldn't output the "bad" data into the logs, as that data is unfiltered and could have anything in it. (We also don't think this information is helpful to have in the logs anyways.)
2020-12-03 22:12:08 +00:00
Anton KaliaevandGitHub f2f6a78809 docs: warn developers about calling blocking funcs in Receive (#5679)
Refs #2888
2020-11-17 15:37:35 +00:00
MarkoandGitHub 346aa14db5 fix lint failures with 1.31 (#5489) 2020-10-13 10:22:53 +02:00
Callum WatersandGitHub 4f79930c12 blockchain: remove duplication of validate basic (#5418) 2020-09-28 17:02:46 +02:00
Callum WatersandGitHub ed002cea7e evidence: introduction of LightClientAttackEvidence and refactor of evidence lifecycle (#5361)
evidence: modify evidence types (#5342)

light: detect light client attacks (#5344)

evidence: refactor evidence pool (#5345)

abci: application evidence prepared by evidence pool (#5354)
2020-09-22 10:22:54 +02:00
MarkoandGitHub 56911ee352 state: define interface for state store (#5348)
## Description

Make an interface for the state store. 

Closes: #5213
2020-09-15 07:45:48 +00:00
MarkoandGitHub 0ed8dba991 lint: enable errcheck (#5336)
## Description

Enable errcheck linter throughout the codebase

Closes: #5059
2020-09-07 15:03:18 +00:00
MarkoandGitHub 135ac0400e blockchain: verify +2/3 (#5278)
## Description

Verify only +2/3 of the commit. 

Closes: #5259
2020-08-25 07:07:19 +00:00
Erik GrinakerandGitHub edf5cff80f blockchain: fix fast sync halt with initial height > 1 (#5249)
Blockchain reactors were not updated to handle arbitrary initial height after #5191.
2020-08-14 13:04:51 +00:00
n-huttonandGitHub 375f0c819f add fixes for flaky tests (#5146)
While working on tendermint my colleague @jinmannwong fixed a few of the unit tests that we found to be flaky in our CI. We thought that you might find this useful, see below for comments.
2020-07-27 10:36:56 +04:00
MarkoandGitHub 2ac5a559b4 libs: wrap mutexes for build flag with godeadlock (#5126)
## Description

This PR wraps the stdlib sync.(RW)Mutex & godeadlock.(RW)Mutex. This enables using go-deadlock via a build flag instead of using sed to replace sync with godeadlock in all files

Closes: #3242
2020-07-20 07:55:09 +00:00
MarkoandGitHub 6ccccb0933 lint: errcheck (#5091)
## Description

add more error checks to tests


gonna do a third PR that tackles the non test cases
2020-07-14 11:04:41 +00:00
Anton KaliaevandGitHub 730e16566e proto: change type + a cleanup (#5107)
- drop Height & Base from StatusRequest
It does not make sense nor it's used anywhere currently. Also, there
seem to be no trace of these fields in the ADR-40 (blockchain reactor
v2).

- change PacketMsg#EOF type from int32 to bool
2020-07-13 10:24:17 +00:00
Lei WangandGitHub 430162f8a1 Update reactor.go (#5088)
check bcR.fastSync flag when "OnStop"

fix "service/service.go:161	Not stopping BlockPool -- have not been started yet	{"impl": "BlockPool"}" error when kill process
2020-07-07 09:47:49 +00:00