Commit Graph

8547 Commits

Author SHA1 Message Date
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
42049faed6 node: update bootstrapping for blockchain reactors 2021-01-11 09:36:06 -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
e986602649 evidence: p2p refactor (#5747) 2021-01-06 11:53:18 -05:00
Tess Rinearson
2c95b0b5e0 changelog: update with changes released in 0.34.1 (#5875) 2021-01-06 16:56:13 +01:00
Erik Grinaker
a0d4d85375 os: simplify EnsureDir() (#5871)
#5852 fixed an issue with error propagation in `os.EnsureDir()`. However, this function is basically identical to `os.MkdirAll()`, and can be replaced entirely with a call to it. We keep the function for backwards compatibility.
2021-01-06 15:27:35 +00: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
8bf77d9b1a statesync: do not recover panic on peer updates (#5869) 2021-01-06 10:07:10 -05:00
Erik Grinaker
1ccd23ca1d p2p: fix MConnection inbound traffic statistics and rate limiting (#5868)
Fixes #5866. Inbound traffic monitoring (and by extension inbound rate limiting) was inadvertently removed in 660e72a.
2021-01-06 15:38:23 +01:00
dependabot[bot]
47f5650615 build(deps): Bump codecov/codecov-action from v1.2.0 to v1.2.1
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from v1.2.0 to v1.2.1.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v1.2.0...e156083f13aff6830c92fc5faa23505779fbf649)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-06 14:29:56 +01:00
Aleksandr Bezobchuk
537464d26a blockchain v2: update message usage 2021-01-05 12:05:13 -05:00
dependabot[bot]
5b17c01e41 build(deps): Bump codecov/codecov-action from v1.1.1 to v1.2.0 (#5863)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Marko <marbar3778@yahoo.com>
2021-01-05 08:51:21 -08:00
Aleksandr Bezobchuk
faa0e09f17 blockchain v0: update poolRoutine 2021-01-05 11:13:14 -05:00
Callum Waters
9b9222f461 store: order-preserving varint key encoding (#5771) 2021-01-05 16:53:26 +01:00
Erik Grinaker
0555772d3a blockchain/v0: stop tickers on poolRoutine exit (#5860)
Fixes #5841.
2021-01-05 14:45:24 +00:00
Erik Grinaker
1e1d087494 blockchain/v2: fix missing mutex unlock (#5862)
Fixes #5843.
2021-01-05 14:35:20 +00:00
Erik Grinaker
85353d9af5 test/consensus: improve WaitGroup handling in Byzantine tests (#5861)
Fixes #5845.
2021-01-05 10:44:03 +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
a7f935c93a statesync: add logs 2021-01-04 16:32:50 -05:00
Aleksandr Bezobchuk
c111125b9f blockchain v0: refactor message logic 2021-01-04 16:32:40 -05:00
Aleksandr Bezobchuk
b48a7f4d7e blockchain v0: initial commit 2021-01-04 14:41:01 -05:00
Erik Grinaker
1570d26f84 test/e2e: add conceptual overview (#5857)
This should be useful to understand the overall purpose and structure of the end-to-end tests.
2021-01-04 17:51:49 +00:00
Aleksandr Bezobchuk
c75dee5a02 state sync: Fix TestSyncer_SyncAny (#5835) 2021-01-04 10:31:20 -05:00
Erik Grinaker
17ca6c6c98 test/e2e: disable abci/grpc and blockchain/v2 due to flake (#5854)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-01-04 15:19:07 +00:00
Erik Grinaker
46964f62db p2p: fix IPv6 address handling in new transport API (#5853)
The old code naïvely concatenated IP and port, which doesn't work for IPv6 addresses where `:` can be part of the IP as well.
2021-01-04 15:05:43 +00:00
Erik Grinaker
9c47b572f7 libs/os: EnsureDir now returns IO errors and checks file type (#5852)
Fixes #5839.
2021-01-04 14:30:38 +00:00
Erik Grinaker
1b18d26644 abci/grpc: fix invalid mutex handling in StopForError() (#5849)
Fixes #5840.
2021-01-04 13:56:01 +00:00
Erik Grinaker
d39eb74daa tools/tm-signer-harness: fix listener leak in newTestHarnessListener() (#5850)
Fixes #5837.
2021-01-04 13:38:42 +00:00
Erik Grinaker
91bef75f62 p2p: rename PubKeyToID to NodeIDFromPubKey 2021-01-04 11:25:20 +01:00
Erik Grinaker
b4ce1de44a p2p: rename NodeInfo.DefaultNodeID to NodeID 2021-01-04 11:25:20 +01:00
Erik Grinaker
1b6df6783d p2p: replace PeerID with NodeID 2021-01-04 11:25:20 +01:00
Erik Grinaker
cc3c18a6a7 p2p: add NodeID.Validate(), replaces validateID() 2021-01-04 11:25:20 +01:00
Erik Grinaker
8e7d431f6f p2p: rename ID to NodeID 2021-01-04 11:25:20 +01:00
John Adler
3c1416b3d7 ABCI: Update readme to fix broken link to proto (#5847)
# Description

Proto definitions file was moved and link was broken. Fixed as relative link.
2021-01-03 19:17:21 -08:00
Anton Kaliaev
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
Erik Grinaker
84ff991387 p2p: add MemoryTransport, an in-memory transport for testing (#5827) 2020-12-23 13:21:01 +01:00
Marko
bc1f1e5ffa ci: run goreleaser build (#5824)
# Description

- run build when on a branch matching RC[0-9]/**, in accordance with contributing.md release guide.

Closes: #5695
2020-12-22 08:06:37 -08:00