Sam Kleinman
1c4950dbd2
state: move package to internal ( #6964 )
2021-09-22 13:04:25 -04:00
JayT106
84ffaaaf37
statesync/rpc: metrics for the statesync and the rpc SyncInfo ( #6795 )
2021-09-21 09:22:16 +02:00
Sam Kleinman
9dfdc62eb7
proxy: move proxy package to internal ( #6953 )
2021-09-20 15:18:48 -04:00
Callum Waters
bda948e814
statesync: implement p2p state provider ( #6807 )
2021-09-02 13:19:18 +02:00
William Banfield
4e96c6b234
tools: add mockery to tools.go and remove mockery version strings ( #6787 )
...
This change aims to keep versions of mockery consistent across developer laptops.
This change adds mockery to the `tools.go` file so that its version can be managed consistently in the `go.mod` file.
Additionally, this change temporarily disables adding mockery's version number to generated files. There is an outstanding issue against the mockery project related to the version string behavior when running from `go get`. I have created a pull request to fix this issue in the mockery project.
see: https://github.com/vektra/mockery/issues/397
2021-07-30 20:47:15 +00:00
Callum Waters
02f8e4c0bd
blockstore: fix problem with seen commit ( #6782 )
2021-07-30 17:37:04 +02:00
Callum Waters
0e2752ae42
light: improve error handling and allow providers to be added ( #6733 )
2021-07-22 18:12:34 +02:00
JayT106
e70445f942
statesync/event: emit statesync start/end event ( #6700 )
2021-07-22 08:16:50 +02:00
Callum Waters
6dd0cf92c8
router/statesync: add helpful log messages ( #6724 )
2021-07-15 19:26:35 +02:00
William Banfield
a46724e4f6
statesync: dispatcher test uses internal channel for timing ( #6713 )
...
This code change amends the dispatcher tests to read from the dispatcher's `requestCh`. This ensures that a request is waiting when the test calls `dispatcher.respond`.
addresses: #6711
2021-07-14 14:16:09 +00:00
Sam Kleinman
ab5c63eff3
statesync: increase dispatcher timeout ( #6714 )
2021-07-13 13:04:18 -04:00
Sam Kleinman
8228936155
e2e: extend timeouts in test harness ( #6694 )
2021-07-13 11:28:07 -04:00
Callum Waters
a12e2bbb60
statesync: use initial height as a floor to backfilling ( #6709 )
2021-07-13 16:36:16 +02:00
William Banfield
4009102e2b
statesync: remove outgoingCalls race condition in dispatcher ( #6699 )
...
* statesync: remove outgoing calls race condition
2021-07-12 19:05:47 -04:00
William Banfield
cabd916517
Revert "statesync: keep peer despite lightblock query fail ( #6692 )" ( #6696 )
...
* Revert "statesync: keep peer despite lightblock query fail (#6692 )"
This reverts commit 50b00dff71 .
2021-07-12 15:20:02 -04:00
William Banfield
50b00dff71
statesync: keep peer despite lightblock query fail ( #6692 )
...
When a peer responds with no lightblock for the height we queried, we call the [removePeer method](https://github.com/tendermint/tendermint/blob/master/internal/statesync/reactor.go#L339 ). This removes the peer from the [dispatcher's list of called peer's](ad65883152/internal/statesync/dispatcher.go (L159) ). When the dispatcher then receives responses from the removed peer, it [drops their responses](ad65883152/internal/statesync/dispatcher.go (L130) ). These responses may be meaningful or contain a block or data that will help statesync proceed.
[The logs](https://gist.github.com/tychoish/34a1f61eaae3c36c23efc7d0001e805c ), when this change is applied, show an additional 3 networking testnets passing.
addresses: #6691
2021-07-09 21:20:25 +00:00
Callum Waters
051e127d38
light: correctly handle contexts ( #6687 )
2021-07-09 18:48:18 +02:00
Callum Waters
2c14d491f6
fix leaking statesync test ( #6680 )
2021-07-08 15:26:35 +02:00
Aleksandr Bezobchuk
1dec3e139a
add stacktrace to panic logs ( #6662 )
2021-07-06 14:26:18 -04:00
Callum Waters
a1e1e6c290
test: fix non-deterministic backfill test ( #6648 )
2021-07-05 16:42:36 +02:00
Sam Kleinman
917180dfd2
p2p: reduce buffering on channels ( #6609 )
...
Having smaller buffers in each reactor/channel will mean that there will be fewer stale messages.
2021-06-24 20:38:35 +00:00
Sam Kleinman
ae5f98881b
p2p: make NodeID and NetAddress public ( #6583 )
2021-06-24 09:59:14 -04:00
Callum Waters
6e238b5b9d
statesync: make fetching chunks more robust ( #6587 )
2021-06-21 10:14:15 -04:00
Callum Waters
25bb556fee
p2p: increase queue size to 16MB ( #6588 )
2021-06-16 17:27:41 +02:00
Aleksandr Bezobchuk
7d961b55b2
state sync: tune request timeout and chunkers ( #6566 )
2021-06-15 14:33:26 -04:00
Callum Waters
74af343f28
statesync: tune backfill process ( #6565 )
...
This PR make some tweaks to backfill after running e2e tests:
- Separates sync and backfill as two distinct processes that the node calls. The reason is because if sync fails then the node should fail but if backfill fails it is still possible to proceed.
- Removes peers who don't have the block at a height from the local peer list. As the process goes backwards if a node doesn't have a block at a height they're likely pruning blocks and thus they won't have any prior ones either.
- Sleep when we've run out of peers, then try again.
2021-06-11 15:26:18 +00:00
Callum Waters
6f6ac5c04e
state sync: reverse sync implementation ( #6463 )
2021-06-08 19:23:52 +02:00
Sam Kleinman
a855f96946
p2p: renames for reactors and routing layer internal moves ( #6547 )
2021-06-08 08:17:09 -04:00