Commit Graph

76 Commits

Author SHA1 Message Date
Dulana Peiris
78d534fa2a Naming changes and added HPSH to docker image 2023-12-19 10:56:17 +05:30
supunvindula
a9a56420e6 changed hpsh to debug_shell 2023-11-08 14:38:13 +05:30
chalith
6a0fcd02d6 Updated hpsh binary 2023-11-02 21:54:58 +05:30
chalith
082b1e614c Updated hpsh binary 2023-11-02 15:54:28 +05:30
chalith
30bff884bf Disconnect handler 2023-11-02 13:29:53 +05:30
chalith
c4c304a106 Added code comments 2023-11-01 16:13:51 +05:30
chalith
f463cd6705 Changes to support follow commands 2023-11-01 13:53:19 +05:30
chalith
835b702e7e Remove command when user disconnected 2023-10-31 18:31:06 +05:30
chalith
dc9e1b46e5 Introduced terminate control message 2023-10-31 17:29:16 +05:30
chalith
bc37c76a93 Updated hpsh binary 2023-10-31 14:04:24 +05:30
chalith
f84a02ce09 Implementation for message handling 2023-10-31 13:35:37 +05:30
supunvindula
23ee18e454 included the basic architecture for hpsh implementation 2023-10-31 10:02:42 +05:30
Dulana Peiris
a133fb48eb Added HPSH init, deinit and serve. Fixed socket communication issues 2023-10-23 23:11:05 +05:30
supunvindula
172195f1f6 new build file 2023-10-19 10:50:06 +05:30
Dulana Peiris
ed5186759b Added one way pipe communication and argument passing 2023-10-17 14:51:02 +05:30
supunvindula
5bdda39a7b added basic hpsh filepath and structure 2023-10-12 13:03:50 +05:30
Chalith Desaman
ed974b0425 hpws udp visa implementation (#383) 2023-09-23 10:15:52 +05:30
ravinsp
2bd2e5a905 hpfs update with statvfs. 2022-03-02 19:20:09 +05:30
Ravin Perera
8dabfb4a2e IP ban refactor with hpws. (#354)
* Refactored corebill.
* Integrated hpws ban tracking.
* Removed session handler helpers.
* Improved bad behaviour reporting.
2021-12-17 07:08:26 +05:30
Chalith Desaman
05191a9f32 Updated the hpfs binary (#342) 2021-08-11 16:25:58 +05:30
Savinda Senevirathne
c14d15c3e3 Hpfs binary update after bug fix. (#341) 2021-08-04 16:37:18 +05:30
Savinda Senevirathne
ba2b69cebc hpfs binary build on ubuntu 18.04 (#340) 2021-08-03 17:34:21 +05:30
asela kotagama - aseladk
da813887ca Update hpcore repo and replaced hpfs binary. (#339) 2021-08-03 09:26:30 +05:30
Chalith Desaman
4a5c3554bd Hotpocket version changes (#336) 2021-07-28 16:33:58 +05:30
Ravin Perera
d315f9c316 Introduced smart contract run-as user. (#329)
* Added contract run_as config.
* Run smart contract process under the run_as user.
* Integrated run_as user to contract hpfs startup.
2021-06-30 16:15:11 +05:30
Ravin Perera
d7733698de Updated docker images. (#326) 2021-06-23 12:54:39 +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
7cd56a1475 Consensus proposal pruning improvement. (#314)
Consensus proposal pruning improvement.
hpfs binary fd leak fix.
2021-05-29 12:53:49 +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
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
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
ravinsp
f85059ea2a Updated hpws binary with tcp packet delay fix. 2021-05-04 09:04:07 +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
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
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
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
Savinda Senevirathne
140b2f80fd Truncate log and hpfs index file from given sequence number. (#276)
- Truncation is invoked by making truncate system call on /hpfs::index.<seq_no> file.
- Updating hpfs binary.
- Truncation waits until any active RW and RO sessions are finished.
2021-03-29 13:22:55 +05:30
Chalith Desaman
44fa3134ea Updating hpfs log index on ledger creation (#274) 2021-03-24 16:49:38 +05:30
Chalith Desaman
00a3da9a2b Request historical shards when max shard range is increased (#266)
* Remove and request historical shards at the startup

* Shard history requesting only at the first consensus round

* Removed test log

* Skip max shard seq no file in removing loop

* Updated the code comments

* Persisting condition changed

* Fixed code comment typos

* Fixed code comment typos

* Resolved PR comments

* Halt consensus until completing only the latest shard sync

* Added meaningful comments

* Resolved PR comments and updated hpfs binary

* Logic enhancement and cleanup

* Cleanup the code comment
2021-03-12 12:13:46 +05:30
Savinda Senevirathne
70a83893b0 Fixing connection not closing when threshold exceeded from a single attempt. (#261)
* Fixing connection not closing when threshold exceeded from a sigle message.

* Updated hpws binary.
2021-03-05 16:58:41 +05:30
Ravin Perera
8eac87fb85 Added smart contract upgrade support. (#250)
Supports smart contract self-upgrades by allowing "post_exec.sh" script to be executed after consensus contract execution.
2021-02-18 17:25:42 +05:30
Ravin Perera
08680ee8d4 hpws upgrade with websocket protocol improvements. (#232)
* Updated hpws binary and header.
* Improved binary encoding support in client lib.
2021-02-01 22:31:28 +05:30
Ravin Perera
e8e7921ac1 Single-process hpfs integration. (#212) 2021-01-06 21:53:39 +05:30
ravinsp
99e4296746 Updated hpfs binary with rename fixes v2. 2021-01-01 07:44:52 +05:30
ravinsp
82d26f4047 Updated hpfs binary with rename support. 2020-12-31 08:53:47 +05:30
Savinda Senevirathne
cc7cae60a9 Provide error message when cannot bind to listening ports at startup. (#199) 2020-12-21 16:43:39 +05:30
Chalith Desaman
229af3e294 hpfs binary update (#196) 2020-12-16 11:33:09 +05:30