Commit Graph

387 Commits

Author SHA1 Message Date
Ravin Perera
d7733698de Updated docker images. (#326) 2021-06-23 12:54:39 +05:30
Ravin Perera
6a1fb3c5ad Added time based kill switch. (#325) 2021-06-22 11:08:15 +05:30
Savinda Senevirathne
7442c4f111 Rolling contract log files. (#324) 2021-06-22 09:21:15 +05:30
Ravin Perera
c1e1cd12a8 Input responses while syncing. (#323)
* Send pending input responses after syncing.
* Send input statuses on expired inputs.
* Sqlite no journal.
2021-06-12 15:14:21 +05:30
Ravin Perera
aae1617ec0 Metrics script improvements. (#322) 2021-06-09 13:22:14 +05:30
Ravin Perera
03cbc27f0e Cluster event stream scripts. (#321) 2021-06-09 11:43:59 +05:30
Ravin Perera
9741865027 Limit cap increase. (#320) 2021-06-07 15:41:55 +05:30
Ravin Perera
cc11ebd7b3 Event subscription infrastructure and ledger events. (#319)
- Introduced event subscription infrastructure for users.
- Added ability to subscribe to ledger events.
- Updated client lib for event subscription support.
2021-06-07 10:24:58 +05:30
Ravin Perera
a7b7f6c9de Added user message to get lcl. (#318) 2021-06-04 16:16:22 +05:30
Ravin Perera
33bd63ac64 Status tracking infrastructure. (#317)
* Added node's current status information tracker.
* Used the status tracker for responding to status messages.
* Used change-event notifications to broadcast UNL change event.
2021-06-04 15:08:10 +05:30
Ravin Perera
07962bc3d5 Improvements for larger clsuters. (#316)
- Cluster script improvements.
- Skipped msg too old check unverified peer sessions.
- Moved known peer maintenance to peer loop.
2021-05-30 12:32:51 +05:30
Ravin Perera
2f0a6673d5 Added Vultr api scripts. (#315) 2021-05-29 13:01:33 +05:30
Ravin Perera
7cd56a1475 Consensus proposal pruning improvement. (#314)
Consensus proposal pruning improvement.
hpfs binary fd leak fix.
2021-05-29 12:53:49 +05:30
Ravin Perera
a6dbf1f277 Fixed busy loop issue in hpfs sync. (#313) 2021-05-27 22:41:02 +05:30
Ravin Perera
b172152cba Sync and consensus improvements. (#312)
* Refactored hpfs sync to support parallel target sync.
* Removed role change in consensus.
2021-05-25 21:43:08 +05:30
ravinsp
6cfa47418c Minor updates to echo contract and hpfs. 2021-05-23 17:14:34 +05:30
Chalith Desaman
2bb6be0ce5 Fixed full history hpfs log syncing issues (#311) 2021-05-19 19:06:47 +05:30
Ravin Perera
45492f7c7f Added stage slice config to control stage time allocation. (#310) 2021-05-19 16:59:01 +05:30
Ravin Perera
94b29b9e05 Added genesis fallback on ledger corruption. (#309) 2021-05-18 16:57:51 +05:30
Ravin Perera
6a8f449d5b Introduced bson support for browser js client lib. (#308)
* Added blake3 import and safari compatibility fix.
* Created browser lib with bson support.
* Added 'terser' for minification.
* Added TextEncoder compatiblity fix.
2021-05-13 15:14:29 +05:30
Savinda Senevirathne
5da88aa5c5 Ignoring messages greater than 1MB from peer duplicate message check. (#307) 2021-05-12 14:55:09 +05:30
Savinda Senevirathne
3988828ac7 Remove connection whitelisting on user connect. (#306) 2021-05-12 13:49:10 +05:30
Ravin Perera
63f62228c2 hpfs binary update and vm cluster script improvements. (#305)
* Updated hpfs binary for log file extending fix.
* Updated vmcluster scripts to include separate hpfiles dir per contract.
2021-05-12 09:23:36 +05:30
Ravin Perera
4e75b497ec Improvements to vm cluster scripts. (#304)
* Improvements to vm cluster scripts.
* Fixed sync priority change issue.
2021-05-11 09:01:09 +05:30
Ravin Perera
321ae2d753 hpfs binary with optimized write fix. (#303)
* Updated hpfs bin.
* Improved logs.
* Local cluster script log level fix.
2021-05-08 17:51:16 +05:30
Ravin Perera
ef2bb22b67 hpfs sync target refactoring. (#302) 2021-05-04 16:33:19 +05:30
ravinsp
f85059ea2a Updated hpws binary with tcp packet delay fix. 2021-05-04 09:04:07 +05:30
Ravin Perera
fded7b7917 Introduced priority queues for proposal processing. (#301)
* Introduced high priority queue for comm session message processing.
* Added high priority send for proposals.
2021-05-03 21:44:36 +05:30
Ravin Perera
a8ae9c5876 Updated hpfs binary off_t return type fix. Introduced hpfs log level to hp config. (#300)
Updated hpfs binary off_t return type fix. Introduced hpfs log level to hp config
2021-05-02 08:54:40 +05:30
Ravin Perera
4f82afe5b1 Pre-emptive hpfs sync responses. (#299)
Hpfs sync requester reports its own filesystem state to the responder. Responder uses that information to pre-emptively send additional filesystem data the requester may need.
2021-05-01 08:27:42 +05:30
Savinda Senevirathne
3381608afd Updating hpws binary after hpws poll interval increase. (#298) 2021-04-30 10:20:57 +05:30
Ravin Perera
f55341f49e Updated hpfs binary with write optimization support. (#297) 2021-04-30 05:59:31 +05:30
Ravin Perera
505d1ad849 Reacquire hpfs rw session after each sync target completion. (#296) 2021-04-29 10:08:43 +05:30
Ravin Perera
954914e932 Fixed get status peer address formatting crash. (#295) 2021-04-28 14:37:26 +05:30
Ravin Perera
78fb68e064 Peer message flatbuffer parsing fixes. (#294) 2021-04-25 21:16:42 +05:30
Ravin Perera
e8d63c95f2 Improved vmscripts and js client lib reliability. (#293)
* Added certbot ssl support to vm scripts.
* Client lib blake3 init improvement.
* Client lib connection review process improvement.
2021-04-23 13:28:47 +05:30
Ravin Perera
23dac682d1 Minor improvements to vm cluster scripts. (#292) 2021-04-20 21:44:44 +05:30
Chalith Desaman
05e8077e5b Persisting hpfs log responses to the hpfs (#291)
Fixing the in memory raw shard hash update.
Passing the seq_no of index update to verify that the index records are consistent.
Restart rw session after completing last primary shard sync.
Fixed issue in fs read write by multiple threads.
Hpfs log sync modifications.
2021-04-16 20:06:20 +05:30
Ravin Perera
2283d2bf89 Performed ledger input output writing inside a transaction. (#290) 2021-04-13 12:34:38 +05:30
Ravin Perera
7a837ede7c Supported not storing raw data shards. (#289) 2021-04-13 11:11:37 +05:30
Ravin Perera
77279dc6ac Updated proposal time checks. (#288) 2021-04-13 11:06:58 +05:30
Ravin Perera
83bb158dd3 Fixed integer serialization issue with bson. (#287) 2021-04-12 07:15:57 +05:30
Ravin Perera
370e03fe84 Switched user input nonce from string to uint64. (#286) 2021-04-11 14:51:57 +05:30
Ravin Perera
3941f5f6c6 Revamped ledger input/output storage and query execution. (#285)
- Ledger sqlite db improvements.
- Removed flatbuffers from ledger blob data storage.
- Added consensus private mode blob data filtration.
2021-04-11 11:45:14 +05:30
Ravin Perera
0a3183a3d6 Included output hash and ledger info in output return message. (#284) 2021-04-08 10:42:33 +05:30
Ravin Perera
d4646179c2 Returned input hash and ledger info for input submissions. (#283)
- Introduced input hash which can later be used to query the ledger.
- Returned input hash and ledger info at input submission.
- Updated js client lib to support input hash.
- Updated consensus proposal candidate expiration rules.
2021-04-07 21:22:29 +05:30
Savinda Senevirathne
137d7633e0 Updated hpfs binary and its relevant hpcore changes. (#282)
* Hpfs index file is updated to match the file with the hpfs version.
* Added updated hpfs binary.
* Version log changes because Plog is not initialized at the time of version init.
2021-04-02 10:36:29 +05:30
Chalith Desaman
5833431157 hpfs binary update, hpfs log serving and passing to hpfs (#281)
* full history announcement in peer challenge and ability to send random messages only to full history nodes.

* log sync infrastructure codes.

* Resolving merge conflict  induced errors.

* Fork detection implementation.

* Cleanup.

* Resolving PR comments.

* hpfs binary update, hpfs log serving and persisting

* Fixed merge conflict and added missing log

Co-authored-by: Savinda Senevirathne <savindadilsara@gmail.com>
2021-04-01 17:13:58 +05:30
Ravin Perera
bba5266f5d Fixed consensus issues with large no. of users and inputs. (#280)
* Fixed issue in consensus contract output  sorting.

* Improved load test script.

* Removed flatbuffer verifier restrictions to support large no. of users and inputs.

* Improved consensus proposal cleanup.

* Restored the earlier proposal cleanup logic.

* Minor fixes.

* const fix.
2021-04-01 17:12:39 +05:30
Savinda Senevirathne
af48f3b01f Hpfs log file sync and fork detection. (#279)
Basic infrastructure for log file sync.
A fork is detected by comparing the hpfs log index file against the ledger.
Min and max ledger sequence hashes are sent to a full history node to request log history.
2021-04-01 13:08:29 +05:30