This repository has been archived by the owner on Jun 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 458
Merge Feature/create network module #3465
Merged
Merged
Changes from all commits
Commits
Show all changes
167 commits
Select commit
Hold shift + click to select a range
6300bd1
Add entry for modules config
jondubois 76e350f
Bump lisk-element version
jondubois 7eb0ff2
Modify System component to allow passing a handler to check when the …
jondubois 03997d0
Add support for modules field in schema
jondubois 8cdc9c2
Make chain module responsible for publishing an updateNodeInfo event …
jondubois 205cac2
Add network module
jondubois 30b4f75
Connect NetworkModule to main application so that it runs alongside t…
jondubois 2e9f207
Add system tag in front of updateNodeInfo event
jondubois 6936cf6
Add lisk-p2p module to package.json separately
jondubois 3cc9338
Fix config for network tests
jondubois 8a6dfa8
ESLint cleanup
jondubois 08f1593
Bind Network module to controller actions and events
jondubois 352d5d6
Expose additional actions
jondubois 6d2c799
Improve approach for getting NodeInfo
jondubois a3e658d
Add default ackTimeout and dsicoveryInterval to Network module options
jondubois 43e9d1a
Use 1.0 lisk-elements version since the p2p library is imported separ…
jondubois d7c7480
Do not expose applyPenalty action since it is not currently supported
jondubois eaff5e2
Add more detail to application schema
jondubois 81c143c
Log all events from P2P library
jondubois d138576
Minor cleanup of network module
jondubois 13428e3
Merge pull request #3019 from LiskHQ/2874-create_network_module
shuse2 458a6a1
Merge branch 'development' into feature/create_network_module
jondubois cb06646
Merge branch development into feature/create_network_mdoule
ishantiw 435429d
Allow modules to emit any events on the bus under their own namespace
jondubois 7a7002c
Adapt network module to use application state
diego-G a62a26d
Expose synching methods on chain module
jondubois bb90658
Migrate blocks submodule to use the new network module instead of int…
jondubois 1dd941c
Fix network module compatibility issues with v1 lisk-core network
jondubois b680818
Change loader to use the new network module instead of old peer system
jondubois 73bd7e4
Fix integration test related to blocks process
jondubois d256395
Fix unit tests related to blocks process
jondubois 7552813
Fix loader unit tests
jondubois e9528a0
Remove failing unit tests
jondubois 7ad150e
Remove unused variable
jondubois b381a30
Skip network tests until we have fixed the config format
jondubois 21df01d
Resolve QA feedback
jondubois 7b0a67c
Remove deprecated system component
diego-G c703035
Cleanup to account for changes to applicationState
jondubois 4211761
Fix lint issue
jondubois 90f4eb9
Skip jest unit test case for which requirements are currently unclear
jondubois f38f193
Skip test cases for which the requirements are not yet known
jondubois b7d21a1
Skip network test until we have the new config format
jondubois 9540355
Fix linting
jondubois 3a9d826
Merge pull request #3261 from LiskHQ/3260-adapt_network_module_to_app…
shuse2 275d969
Merge branch 'feature/create_network_module' into 2875-loader_to_use_…
jondubois e14fa62
Merge pull request #3272 from LiskHQ/development
jondubois 1a5078a
Merge pull request #3243 from LiskHQ/2875-loader_to_use_network_module
shuse2 ab7fd05
Extract filter functions from peer submodules and use in http_api module
ishantiw 70eef7e
API controller to use network module for api/peers and use helper funcs
ishantiw a0e26d5
Update P2P.getNetworkStatus() to return consolidated list of peers
ishantiw 997cbd6
Remove the use of lodash from network module
ishantiw b6a408f
Use params instead of filters that is modified from previous filter f…
ishantiw 72df02f
Improve filter functions and make them to use arrow
ishantiw 89e7fbe
Add module options to network module and extract peers list from conf…
ishantiw f8f49b6
Skip network test as its failing when using network module
ishantiw eb4d032
Skip GET /peers functional test which needs a different approach to test
ishantiw 989517b
Improve variable names from snake_case to camelCase
ishantiw 23915a4
Refactor filter peer function and use lodash only for shuffling
ishantiw ccd2dd0
Check for unknown parameters and return validation error if passed
ishantiw a534b4a
Remove duplicate import statement and unwanted space
ishantiw 741b0e0
Move peer filter functions to network helper and add func for consoli…
ishantiw 631f40d
Register getPeers and getPeersCountByFilter actions in network module
ishantiw 8f05a8b
Implement missing functions for network actions
ishantiw 62bbac8
Use new actions to get peers and peersCountByFilters
ishantiw ef76490
Merge pull request #3180 from LiskHQ/2879-update_api_peer_endpoints_u…
shuse2 c09cdd9
Change version tag for @liskhq/lisk-p2 dependency
diego-G 7b2e3f0
Remove non used peer related actions from chain module
diego-G acf4d7b
Update calculateConsensus() to use network module
diego-G 612c765
Use async calculateConsensus() when syncing
diego-G d89f427
Upgrade jobs_queue helper to accept async jobs
diego-G 3899428
Convert poorConsensus() to async
diego-G e3bac63
Fix unit test for calculateConsensus()
diego-G 140e4e4
Fix configuration issue on network tests
diego-G c25fcde
Rename poorConsensus() to isPoorConsensus()
diego-G fd15189
Move isPoorConsensus() to peers submodule
diego-G ee00f45
Configure network tests Jenkins execution with just 2 peers
diego-G 5f053a0
Prefer use of native utils instead of Object.prototype.toString.call
diego-G e9dfd6f
Prefer assert checks in chain helper jobs_queue
diego-G 531932c
Merge pull request #3290 from LiskHQ/2881-update_consensus_using_netw…
shuse2 9c43a95
Merge branch 'development' into feature/create_network_module
jondubois aedb47f
Fix merge issue; lisk namespace is now app when publishing or invokin…
jondubois fb6cff5
Merge pull request #3300 from LiskHQ/create_network_module-merge
shuse2 35a0cc6
:seedling: Update transport to use network module
shuse2 84f322d
:fire: Remove unused test
shuse2 7cb9f09
:white_check_mark: Fix transport unit test
shuse2 35314e7
:fire: Remove broadcast header usage
shuse2 6890e18
:recycle: Fix typo and remove unnecessary arg
shuse2 2136014
:recycle: Fix comment
shuse2 c1d9a03
:fire: Remove old peer system usage
shuse2 48d8ee5
Add chain recovery logic if matching block cannot be found
jondubois a1ff537
Fix poor consensus detection which broke after rebase
jondubois b9adb83
Merge pull request #3301 from LiskHQ/3281-chain_recovery
shuse2 36d836e
:fire: Remove WS usage
shuse2 7cdce4a
:white_check_mark: Fix unit tests
shuse2 4370727
Merge branch 'development' into feature/create_network_module
shuse2 f056e85
:recycle: Fix for merge deevelopment
shuse2 d3ac802
Merge branch 'merge_development_into_network_module' into 2877-update…
shuse2 ca2a4d3
:fire: Remove chain network
shuse2 f0cc44e
:fire: Remove network p2p test
shuse2 e7575e6
Merge pull request #3307 from LiskHQ/merge_development_into_network_m…
jondubois dec77ba
:recycle: Fix unit test
shuse2 2291daf
Convert broadcaster to an ES6 Class
diego-G 7c07cf6
Add copyright to broadcaster unit tests
diego-G a671202
Fix broadcaster unit tests
diego-G 7f1a9e8
Remove unnecessary nextRelase() from broadcaster
diego-G 2b91374
Remove callbacks from logic broadcaster
diego-G 9cfba40
Remove self from logic broadcaster
diego-G cfc261c
:bug: Fix broadcaster and peer insertion
shuse2 7ba22f7
Invoke network send event when broadcasting from chain module
diego-G ebeafd5
:bug: Fix network height endpoint
shuse2 ab25027
:white_check_mark: Fix functional test setup
shuse2 6865945
Merge branch '2878-update_broadcaster_to_use_network_module' into 287…
shuse2 8a93d99
:fire: Remove peer from broadcaster
shuse2 9c716c8
:white_check_mark: Fix unit test
shuse2 554119b
:recycle: Add minVersion and nethash
shuse2 af70d38
:fire: Fix network test setting
shuse2 e17912c
:bug: Fix synchroous task reference
shuse2 dd3ef40
:bug: Fix functional ws tests
shuse2 93425ea
:bug: Fix broadacaster unit test
shuse2 c7a5607
:white_check_mark: Increase ack timeout for test
shuse2 b9f7bdb
:bug: Fix functional peer test
shuse2 5f924a8
:recycle: Fix connected state constant
shuse2 1ae6232
:white_check_mark: Fix unit test
shuse2 a72638e
:bug: Fix not to connect to self
shuse2 6407dfa
:white_check_mark: Fix network test configs
shuse2 48d9ccc
:fire: Remove unused definition
shuse2 9cd9a64
Merge pull request #3312 from LiskHQ/2878-update_broadcaster_to_use_n…
shuse2 42ae98f
Merge pull request #3295 from LiskHQ/2877-update_transport_module
shuse2 ee601d5
Merge branch 'development' into feature/create_network_module
shuse2 26ac511
Merge branch 'development' into feature/create_network_module
shuse2 0ebebd6
Merge branch 'development' into feature/create_network_module
shuse2 55a0477
Add new disconnect code and reason for when peer tries to connect to …
jondubois 2c165b7
Disconnect if peer tries to connect to itself
jondubois 8ceab26
Fix outbound socket management issue
jondubois 3bf83fb
Update integration tests to account for not connecting to self
jondubois b6a2934
Fix tslint issue
jondubois c281f6e
Handle socket disconnection as part of initial discovery phase
jondubois 0922e5a
Fix spacing issue
jondubois dbcaec7
Merge pull request #3382 from LiskHQ/3364-p2p_not_connect_to_self
shuse2 42cf200
Only update the app state if broadcast is true (not synching)
jondubois 95e6c1b
Merge pull request #3428 from LiskHQ/3417-connection_id_not_match
shuse2 5234017
Merge branch 'development' into feature/create_network_module
shuse2 3dd9421
:recycle: Fix config changes
shuse2 1f45e84
:white_check_list: Fix unit test errors
shuse2 024c768
Merge development
shuse2 e54d3cc
Merge branch 'development' into merge_development_to_feature_network_…
shuse2 dcac1e5
Merge pull request #3431 from LiskHQ/merge_development_to_feature_net…
shuse2 41321c5
Fix config for network module
jondubois 5d869a7
Merge branch 'development' into feature/create_network_module
shuse2 1ebfd85
:bug: Fix merge problem
shuse2 69117bb
:bug: Fix broadcaster with latest development
shuse2 d72f2b9
:recycle: Fix config
shuse2 4422c43
Merge pull request #3453 from LiskHQ/merge_development_into_network_f…
shuse2 021aa87
Merge branch 'feature/create_network_module' into 3444-fix_network_co…
shuse2 dc50593
Merge branch 'development' into feature/create_network_module
shuse2 09a9880
Merge branch 'feature/create_network_module' into 3444-fix_network_co…
shuse2 79864f8
Merge pull request #3445 from LiskHQ/3444-fix_network_config
shuse2 68e7afa
:arrow_back: Skip network test
shuse2 dfa08e3
Merge branch 'development' into feature/create_network_module
shuse2 b915bf3
:recycle: Remove redundant code
shuse2 b5d06bc
Merge pull request #3458 from LiskHQ/3296-disable_network_test
shuse2 465ee0c
:recycle: Change event format and naming
shuse2 a7a21e4
Merge branch 'feature/create_network_module' of https://github.com/Li…
shuse2 03e25fb
Merge branch 'development' of https://github.com/LiskHQ/lisk-sdk into…
shuse2 316e98f
:bug: not to double listen in the bootstrap
shuse2 f337657
:recycle: Rename event to match the framework
shuse2 dca1cac
Merge branch 'development' of https://github.com/LiskHQ/lisk-sdk into…
shuse2 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possibly rename the variable to
wsPort
for clarity (at line 94)?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And other places as well, just minor that can be considered.