Hlib Kanunnikov
d0e33b4292
blocksync: complete transition from Blockchain to BlockSync ( #6847 )
3 years ago
Sam Kleinman
bf77c0c544
rpc: support new p2p infrastructure ( #6820 )
3 years ago
Sam Kleinman
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
3 years ago
Callum Waters
6ff4c3139c
blockchain: rename to blocksync service ( #6755 )
3 years ago
Callum Waters
91e277d7b7
enable pex reactor depending on config param ( #6762 )
3 years ago
JayT106
e70445f942
statesync/event: emit statesync start/end event ( #6700 )
3 years ago
JayT106
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
3 years ago
Marko
78a0a5fe73
blockchain: error on v2 selection ( #6730 )
## Description
Remove v2 flag from toml
3 years ago
Aleksandr Bezobchuk
4f8bcb1cce
docs: update events ( #6658 )
* docs: update events
* lint++
* lint++
3 years ago
Marko
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.
3 years ago
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.
3 years ago
Sam Kleinman
9ffa7e8a2b
types: move NodeInfo from p2p ( #6618 )
3 years ago
JayT106
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
3 years ago
Sam Kleinman
ae5f98881b
p2p: make NodeID and NetAddress public ( #6583 )
3 years ago
JayT106
2b0a3c151b
fastsync: update the metrics during fast-sync ( #6590 )
Closes #3507
3 years ago
Callum Waters
6e238b5b9d
statesync: make fetching chunks more robust ( #6587 )
3 years ago
Sam Kleinman
a6b30faf35
libs/time: move types/time into libs ( #6595 )
3 years ago
Callum Waters
c0f7fb08c0
config: add root dir to priv validator ( #6585 )
3 years ago
Aleksandr Bezobchuk
7d961b55b2
state sync: tune request timeout and chunkers ( #6566 )
3 years ago
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.
3 years ago
JayT106
a456b71f1f
state: move pruneBlocks from consensus/state to state/execution ( #6541 )
state: move pruneBlocks function from consensus/state to state/execution
Closes #5414
3 years ago
Callum Waters
32bc399bdd
node: fix genesis on start up ( #6563 )
3 years ago
Callum Waters
d6b4bc267b
node/tests: clean up use of genesis doc and surrounding tests ( #6554 )
3 years ago
Callum Waters
6f6ac5c04e
state sync: reverse sync implementation ( #6463 )
3 years ago
Sam Kleinman
a855f96946
p2p: renames for reactors and routing layer internal moves ( #6547 )
3 years ago
Sam Kleinman
00c284d9d7
node: change package interface ( #6540 )
4 years ago
Aleksandr Bezobchuk
7ec123c968
improvement: update TxInfo ( #6529 )
Remove `Context` from the `TxInfo` type and instead require the caller to pass a `Context` to `CheckTx` which is idiomatic.
closes : #6497
4 years ago
Aleksandr Bezobchuk
1e4bc04cd6
mempool: v1 implementation ( #6466 )
4 years ago
Sam Kleinman
7bf84d9d7f
config: seperate priv validator config into seperate section ( #6462 )
Addresses a beginning component of #6255
4 years ago
Marko
1709e49813
version: revert version through ldflag only ( #6494 )
## Description
Add version back to versions, but allow it to be overridden via a ldflag.
Reason:
Many users are not setting the ldflag causing issues with tooling that relies on it (cosmjs)
closes #6488
cc @webmaster128
4 years ago
JayT106
711a718162
config/indexer: custom event indexing ( #6411 )
4 years ago
Sam Kleinman
d9134063e7
rpc: add chunked rpc interface ( #6445 )
4 years ago
Sam Kleinman
fa891c5a4b
node: cleanup pex initialization ( #6467 )
4 years ago
Callum Waters
c320eb1407
split out initializers into setup.go ( #6446 )
4 years ago
Callum Waters
64e7b5efea
p2p: add channel descriptors to open channel ( #6440 )
4 years ago
JayT106
e334555393
node/state: graceful shutdown in the consensus state ( #6370 )
4 years ago
Sam Kleinman
0b0914b3df
rpc: remove global environment ( #6426 )
4 years ago
Callum Waters
ec5e3b0b02
p2p: wire pex v2 reactor to router ( #6407 )
4 years ago
Aleksandr Bezobchuk
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
4 years ago
Sam Kleinman
8eccaf9535
mempool: remove vestigal mempool wal ( #6396 )
4 years ago
Callum Waters
9efc20c963
p2p: improve PEX reactor ( #6305 )
4 years ago
Callum Waters
36d8cb09df
config: create `BootstrapPeers` p2p config parameter ( #6372 )
4 years ago
JayT106
43eacd159f
state/indexer: reconstruct indexer, move txindex into the indexer package ( #6382 )
4 years ago
Callum Waters
8e8de2b2fb
node: use db provider instead of mem db ( #6362 )
4 years ago
Aleksandr Bezobchuk
47b28fd6aa
p2p: minor cleanup + update router options ( #6353 )
4 years ago
Nate Williams
b517dd5685
Expose getter for txIndexer ( #6327 )
4 years ago
Sam Kleinman
0f41f7465c
p2p: extend e2e tests for new p2p framework ( #6323 )
4 years ago
Sam Kleinman
6d9372bd39
test: improve cleanup for data and disk use ( #6311 )
4 years ago
Sam Kleinman
d0b513c182
p2p: filter peers by IP address and ID ( #6300 )
4 years ago
Sam Kleinman
3ed8f14bf9
p2p: connect max inbound peers configuration to new router ( #6296 )
4 years ago