Ravin Perera
9d1163c8c3
Config flag to disable peer port listening. ( #245 )
2021-02-16 14:27:03 +05:30
Ravin Perera
3d36912c25
Added configs to max in connections per remote host. ( #229 )
2021-01-29 13:05:39 +05:30
Ravin Perera
c25ebe66f4
Util helper func simplification. ( #203 )
2020-12-23 21:49:13 +05:30
Savinda Senevirathne
e835e18d18
New config file structure. ( #201 )
2020-12-23 18:52:58 +05:30
Savinda Senevirathne
0bc53fe23c
Review UNL message rules. ( #188 )
2020-12-09 13:34:40 +05:30
Savinda Senevirathne
f3055822ed
Introduce pubkey/unl tracking to Peer sessions. ( #181 )
...
* Adding pubkey in binary to comm sessions and is_unl flag to peer sessions.
* Removing display_name overloads and populating pubkey in user session.
* Changing peer session lookup key from uniqueid to pubkey (binary).
2020-12-02 13:05:06 +05:30
Savinda Senevirathne
e90e9bb5dd
Limiting NPL message broadcasting and forwarding to trusted nodes. ( #173 )
...
* Limiting NPL message broadcasting and forwarding to trusted nodes.
* Error fix in read_iosocket.
2020-11-30 11:11:40 +05:30
Chalith Desaman
459799760b
Added element limits for queue and lists ( #162 )
2020-11-24 13:17:53 +05:30
Ravin Perera
d9517b6164
Reorganized util and hpws source files. ( #161 )
2020-11-23 23:18:42 +05:30
Savinda Senevirathne
bf710c6bde
Idle connection timeout config for both peer and user connections. ( #158 )
2020-11-20 19:48:45 +05:30
Savinda Senevirathne
fe24ef2388
Introduce peer requirement announcement. ( #156 )
2020-11-20 16:01:46 +05:30
priyadharsun
eb0012bc47
Change epoch milliseconds return type to uint64_t. ( #155 )
2020-11-19 12:54:33 +05:30
Chalith Desaman
f475dcb1fb
Dynamic peer list implementation. ( #152 )
2020-11-18 12:58:58 +05:30
Ravin Perera
3ea0299964
Comm session re-architecture and self comm channel. ( #145 )
...
* Introduced self comm channel instead of loopback websocket.
* Introduced comm_session and comm_server inheritance hierarchy.
* Separated peer session and user session classes.
2020-11-08 22:14:08 +05:30
Ravin Perera
ba0cae019d
Refactored consensus into 3 rounds. ( #144 )
...
* Refactored consensus into 3 stages and removed stage 0.
* Consensus threshold calculation improvements.
* Refactored candidate user input processing.
* Renamed proposal sent timestamp field.
* Introduced comm_session display name.
2020-11-07 15:01:01 +05:30
Ravin Perera
37cc27c5ce
Improved debug logging for state sync. ( #139 )
...
* Added random peer send pubkey extraction.
* Improved debug logs in state serve and state sync.
2020-10-27 16:03:34 +05:30
Savinda Senevirathne
fabfdcce89
Weakly connected status announcement. ( #135 )
...
* Forward others' messages only to the weakly connected nodes instead of broadcasting to all the connected peers.
* Announcing connected status depends on a threshold to other connected peers.
* Forwarding messages of weakly connected peers to other peers.
2020-10-23 16:57:01 +05:30
Savinda Senevirathne
4f6ff4fbef
Peer message forwarding. ( #133 )
2020-10-19 10:44:31 +05:30
Ravin Perera
7183383ab7
Replace websocketd/websocat with hpws. ( #131 )
2020-10-15 17:02:06 +05:30
ravinsp
ef1a650f91
Added TLS on/off flag for user port.
2020-09-24 11:05:42 +05:30
priyadharsun
91122474a1
Replaced Boost log with Plog. ( #124 )
2020-09-23 06:06:42 +05:30
Savinda Senevirathne
37629471c5
Refactored consensus to run on a separate thread. ( #123 )
2020-09-18 15:53:15 +05:30
Savinda Senevirathne
38ef3cc1b1
Replacing lock_guard from scoped_lock. ( #120 )
2020-09-18 10:29:34 +05:30
priyadharsun
9cc5d46792
Outbound message re architecture ( #116 )
...
* Removing const keyword from send function definition in comm_session class.
* Rearchitecture outgoing messages.
* Removed concurrentqueue.h file out of the project.
* Updated ReadMe file.
* Minor comment reformattings.
* Readme update with concurrent queue github link.
* Removed should_stop_messaging_threads variable.
* Updated ReadMe file
* Updated and Changed the formatting of the Blake3 build script in ReadMe.
* Resolved review comment.
Co-authored-by: Savinda Senevirathne <savindadilsara@gmail.com >
2020-09-11 12:26:16 +05:30
Ravin Perera
d2f45daf4c
Implemented multi-threaded inbound network message processing. ( #115 )
...
Used per-session thread to offload messages from network and a single thread for processing collected messages.
2020-09-10 15:40:08 +05:30
Ravin Perera
465573ad29
Updated nodejs contract lib for streamed input reading. ( #110 )
2020-08-21 15:27:25 +05:30
Ravin Perera
04e230c82e
Improvements in state request/response handling. ( #97 )
2020-06-18 15:07:33 +05:30
Ravin Perera
b89dbe0a2c
Rearchitected state sync with hpfs. ( #96 )
2020-06-10 20:51:45 +05:30
Ravin Perera
10374352c6
hpfs integration. ( #94 )
2020-06-04 13:51:53 +05:30
Ravidu Lashan
ef8ec0f51d
Added challenge issue and verification for peer connections ( #93 )
...
Implemented flatbuffer peer challenge issue and verification messages.
Replaced session flags with challenge status enum.
2020-04-20 05:55:42 +05:30
Ravin Perera
ef4999f29e
Added binary support for user sockets. ( #90 )
2020-04-05 13:04:32 +05:30
Ravin Perera
920be03ade
Websocket re-architecture with websocketd and websocat ( #89 )
...
- Replaced beast with websocketd and websocat. #79 #83 #84
- Implemented inbound/outbound peer connection merging.
- Added graceful shutdown of hpcore with sigint. #87
2020-04-05 08:12:55 +05:30
Ravin Perera
4fefb7ca71
Refactored stage sync logic. ( #86 )
...
* Cleaned up stage time sync logic and avoided extra missed rounds.
* Moved stage sync time logic to beginning of consensus stage.
* Removed check_majority_stage.
* Re-organised lcl sync flow.
2020-02-10 14:27:37 +01:00
Ravidu Lashan
1238e96423
State synchronization logic ( #67 )
...
* Added flat buffer state message request
* Added state vote
* Added state to ledger history and did necessary changes
* Completed receiveing state request
* State read/write helpers.
* Added new fbs schema
* Added more state_store helper methods.
* Started processing response
* Fixed compile errors
* Added get file length.
* Handled state content response
* Statefs code cleanup and fixes.
* Completed response handling
* Completed changes in handling state response
* State sync integration fixes.
* Fuse mount waiting logic.
* Fixed state syncing issues
* state sync fixes
* fixes
* State sync fixes.
* Fixed fs entries retrieval issues.
* changed desync logic
* Added directory helper functions.
* Handled return statemetns from statefs
* Fixed state folder deletion.
* handled errors from statefs
* Working for small files
* Got state sync working.
* Removed cout.
* Fixed catering for stae issue
* Fixed block hash map flatbuf issue.
* Added expected hash
* Added helpers for expected hash comparison.
* Improved state req/resp awaiting logic.
* Fixes.
* Fixes.
* Block request ordering fix.
* Removed couts
* Closed non-closed file descriptors
* Minor fixes.
* Cluster create script changes.
* Fixed reset time off issue.
2019-12-13 10:20:41 +05:30
Asanka Indrajith
bebdace519
Achieving reliable consensus. ( #60 )
...
* Remove considering stage when voting and considering lcl.
* Stage sync , lcl sync and candidate set changes.
* Implemented ledger close time resolution and fixed ledger retrieval issues.
* Code cleanup and added more comments on reliability changes.
* Added further comments and clenup.
2019-11-25 07:40:22 -05:00
Asanka Indrajith
95683035b9
LCL history request and response. ( #59 )
...
Detect and request missing lcl history from another random node.
Sending lcl history response to a asked node.
Getting lcl history response and applying it.
Delete lcl that exceeds max ledger sequence.
2019-11-19 07:50:33 -05:00
Ravidu Lashan
0439ec93e2
Added npl message feature ( #58 )
...
* Completed intial implementation
* Completed basic implementation of npl
* Completed implementation of npl
* Removed unused code
* completed review changes
* Removed unused code segments
* Added descriptive comments
* Added comment to describe npl message header
2019-11-15 10:56:35 +05:30
ravinsp
a89e7eb6c8
Reorganized p2p context objects.
2019-11-10 08:45:20 +05:30
Ravin
8d31075b7b
Code improvements.
2019-11-07 17:21:21 +05:30
Ravin Perera
d16b43406b
Added bad and duplicate message counters to socket_session ( #55 )
2019-11-07 06:57:34 +05:30
Ravin Perera
8a153d5bb5
Implemented user duplicate input message check.
2019-11-05 11:47:42 +05:30
Ravin Perera
83189556de
Refactored user I/O with signed inputs and NUPs. ( #53 )
2019-11-03 22:45:23 +05:30
Ravin Perera
cb364cc420
Compilation time improvements. ( #52 )
...
* Precompiled header for all common library headers (with cmake 3.16rc3).
* Divided cmake build into shared libraries.
* Added gold linker support.
* Separated websockets lambda expressions to an independent file.
2019-11-02 14:46:21 +05:30
Asanka Indrajith
b598025346
Loading and saving ledger and lcl consensus. ( #51 )
...
* Ledger saving, loading, consensus with ledger sequence number.
* std terminate exception handler.
2019-11-01 15:21:25 +05:30
Ravin Perera
93d4abfd2a
Updated hashing algorithm.
2019-10-30 18:35:08 +05:30
Ravidu Lashan
2ba739c984
Implemented socket message monitor infrastructure ( #48 )
...
* Completed adding message threshold
* Removed unused cpp file
* Completed review suggestions
* Added default value check
* Cleanup.
* Added header definitions for socket monitor
2019-10-30 14:16:22 +05:30
Ravin Perera
eeadd1d744
Peer message duplicate detection.
2019-10-28 23:28:51 +05:30
Ravin Perera
1fa19c381f
Reorganised flatbuf schema files and helper funcs.
2019-10-28 20:11:28 +05:30
Asanka Indrajith
d6acee4e09
Basic consensus implementation ( #45 )
...
Consensus for user connections, user inputs, contract outputs and time.
2019-10-26 11:46:32 -04:00
Ravidu Lashan
46d114f44b
Added read message max size in socket communication ( #42 )
...
* Added peermaxmsg size to config
* Completed inital implementation
* Completed adding message max size
* Refactored code
* Refactored code to have data types using std library
* Added peer maxmpm
* Added const to session_options
2019-10-25 11:34:54 +05:30