William Banfield
c7028d111f
merge conflict follow up
2021-08-20 13:42:16 -04:00
William Banfield and GitHub
0bfe698429
Merge branch 'master' into wb/issue-5908
2021-08-20 13:17:46 -04:00
William Banfield
1f2ba5a87d
cr feedback
2021-08-18 17:47:30 -04:00
William Banfield
885b78698c
cr feedback
2021-08-18 09:01:23 -04:00
William Banfield
5542a5bacb
code review feedback
2021-08-17 18:17:50 -04:00
Sam Kleinman and GitHub
bf77c0c544
rpc: support new p2p infrastructure ( #6820 )
2021-08-13 15:39:07 -04:00
William Banfield and GitHub
182e4162ad
Merge branch 'master' into wb/issue-5908
2021-08-12 12:25:12 -04:00
William Banfield
45eedbc087
add indexer service to inspect node
2021-08-12 10:47:07 -04:00
Sam Kleinman and GitHub
d56a44b884
node: minimize hardcoded service initialization ( #6798 )
...
* node: minimize hardcoded service initialization
* hacking
* nil safety
* reduce space
* remove genesis state store
* fix lint
* fix pex
* unwind some odering effects
* fix tests
* remove unused experiment
2021-08-12 13:38:17 +00:00
William Banfield
45f92ee928
remove node refactor
2021-08-11 20:37:49 -04:00
William Banfield
03ee71eac4
PR feedback fixes
2021-08-02 12:50:13 -04:00
William Banfield
df669c7bed
node: sketch of debug node logic
2021-08-02 12:08:15 -04:00
Callum Waters and GitHub
6ff4c3139c
blockchain: rename to blocksync service ( #6755 )
2021-07-28 17:25:42 +02:00
Callum Waters and GitHub
91e277d7b7
enable pex reactor depending on config param ( #6762 )
2021-07-26 15:22:12 +02:00
JayT106 and GitHub
e70445f942
statesync/event: emit statesync start/end event ( #6700 )
2021-07-22 08:16:50 +02:00
JayT106 and GitHub
c4f77ab6d1
fastsync/event: emit fastsync status event when switching consensus/fastsync ( #6619 )
...
closes #2498
solves part of #3365
Note: difficult to test the event emit in SwitchToFastSync part, might need to change `stateSyncReactor` to an interface in the `nodeImpl` struct
2021-07-20 15:36:47 +00:00
Marko and GitHub
0e9bec1b53
pkg: expose p2p functions ( #6627 )
...
## Description
Expose p2p functions for use in the sdk.
These functions could also be copied over to the sdk. I dont have a preference of which is better.
2021-07-02 15:04:42 +00:00
Sam Kleinman and GitHub
9ffa7e8a2b
types: move NodeInfo from p2p ( #6618 )
2021-06-24 12:18:19 -04:00
JayT106 and GitHub
2cc872543b
rpc: add max peer block height into /status rpc call ( #6610 )
...
use `maxPeerBlockHeight` information to show the current network's best height.
Closes #3983
Relate to #3365
ref: the`highestBlock` in the response of `eth.isSyncing` call
https://web3js.readthedocs.io/en/v1.3.4/web3-eth.html#issyncing
2021-06-24 15:11:10 +00:00
Sam Kleinman and GitHub
ae5f98881b
p2p: make NodeID and NetAddress public ( #6583 )
2021-06-24 09:59:14 -04:00
JayT106 and GitHub
2b0a3c151b
fastsync: update the metrics during fast-sync ( #6590 )
...
Closes #3507
2021-06-23 08:00:24 +00:00
Callum Waters and GitHub
6e238b5b9d
statesync: make fetching chunks more robust ( #6587 )
2021-06-21 10:14:15 -04:00
Sam Kleinman and GitHub
a6b30faf35
libs/time: move types/time into libs ( #6595 )
2021-06-17 16:02:31 -04:00
Callum Waters and GitHub
c0f7fb08c0
config: add root dir to priv validator ( #6585 )
2021-06-16 17:13:14 +02:00
Aleksandr Bezobchuk and GitHub
7d961b55b2
state sync: tune request timeout and chunkers ( #6566 )
2021-06-15 14:33:26 -04:00
Callum Waters and GitHub
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
JayT106 and GitHub
a456b71f1f
state: move pruneBlocks from consensus/state to state/execution ( #6541 )
...
state: move pruneBlocks function from consensus/state to state/execution
Closes #5414
2021-06-10 14:24:47 +00:00
Callum Waters and GitHub
32bc399bdd
node: fix genesis on start up ( #6563 )
2021-06-10 10:22:35 +02:00
Callum Waters and GitHub
d6b4bc267b
node/tests: clean up use of genesis doc and surrounding tests ( #6554 )
2021-06-08 19:32:15 +02:00
Callum Waters and GitHub
6f6ac5c04e
state sync: reverse sync implementation ( #6463 )
2021-06-08 19:23:52 +02:00
Sam Kleinman and GitHub
a855f96946
p2p: renames for reactors and routing layer internal moves ( #6547 )
2021-06-08 08:17:09 -04:00
Sam Kleinman and GitHub
00c284d9d7
node: change package interface ( #6540 )
2021-06-04 11:36:30 -04:00
Aleksandr Bezobchuk and GitHub
1e4bc04cd6
mempool: v1 implementation ( #6466 )
2021-06-01 11:17:45 -04:00
Sam Kleinman and GitHub
7bf84d9d7f
config: seperate priv validator config into seperate section ( #6462 )
...
Addresses a beginning component of #6255
2021-05-31 13:16:46 +00:00
JayT106 and GitHub
711a718162
config/indexer: custom event indexing ( #6411 )
2021-05-27 10:44:46 -04:00
Sam Kleinman and GitHub
d9134063e7
rpc: add chunked rpc interface ( #6445 )
2021-05-24 09:48:27 -04:00
Sam Kleinman and GitHub
fa891c5a4b
node: cleanup pex initialization ( #6467 )
2021-05-14 10:05:59 -04:00
Callum Waters and GitHub
c320eb1407
split out initializers into setup.go ( #6446 )
2021-05-12 11:11:24 +02:00
Callum Waters and GitHub
64e7b5efea
p2p: add channel descriptors to open channel ( #6440 )
2021-05-10 22:22:07 +02:00
JayT106 and GitHub
e334555393
node/state: graceful shutdown in the consensus state ( #6370 )
2021-05-10 21:45:26 +02:00
Sam Kleinman and GitHub
0b0914b3df
rpc: remove global environment ( #6426 )
2021-05-06 17:06:16 -04:00
Callum Waters and GitHub
ec5e3b0b02
p2p: wire pex v2 reactor to router ( #6407 )
2021-05-05 18:46:51 +02:00
Aleksandr Bezobchuk and GitHub
bc643b19c4
p2p: support private peer IDs in new p2p stack ( #6409 )
...
Pass a set of private peer ids to the `PeerManager` and any node that exists in this set is not returned in the `Advertise` method.
closes : #6405
2021-04-30 20:37:17 +00:00
Sam Kleinman and GitHub
8eccaf9535
mempool: remove vestigal mempool wal ( #6396 )
2021-04-29 15:33:59 -04:00
Callum Waters and GitHub
9efc20c963
p2p: improve PEX reactor ( #6305 )
2021-04-26 13:03:19 +02:00
Callum Waters and GitHub
36d8cb09df
config: create BootstrapPeers p2p config parameter ( #6372 )
2021-04-22 12:55:50 +02:00
JayT106 and GitHub
43eacd159f
state/indexer: reconstruct indexer, move txindex into the indexer package ( #6382 )
2021-04-21 16:37:44 -04:00
Callum Waters and GitHub
8e8de2b2fb
node: use db provider instead of mem db ( #6362 )
2021-04-16 19:07:18 +02:00
Aleksandr Bezobchuk and GitHub
47b28fd6aa
p2p: minor cleanup + update router options ( #6353 )
2021-04-14 09:35:43 -04:00
Nate Williams and GitHub
b517dd5685
Expose getter for txIndexer ( #6327 )
2021-04-12 14:47:20 +02:00