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
d34b7bce53
Performance metric collection scripts. ( #230 )
...
* Scripts to collect performance metrics.
* Added log level to hp client lib.
2021-01-31 18:08:32 +05:30
adheeb-adb
62c91ad90c
sqlite wrapper for ledger database. ( #228 )
...
Added wrapper methods to create ledger table and insert records for sqlite database.
2021-01-29 18:06:31 +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
70493d827d
Contract id mismatch log message. ( #227 )
...
* Added contract id mismatch log.
* Added individual docker image run script.
2021-01-22 16:36:34 +05:30
Ravin Perera
610b67cec0
Contract execute config flag. ( #226 )
...
* Added contract execute flag. Made bin_path optional.
* Updated docker cluster default config.
* Renamed contract config to hp config.
2021-01-22 14:33:07 +05:30
Chalith Desaman
eef6448f08
Handle unl change announcement in js client library. ( #225 )
2021-01-19 15:29:17 +05:30
Savinda Senevirathne
146bb1d46c
Apply patch file changes only after consensus verification. ( #222 )
2021-01-19 11:56:33 +05:30
Chalith Desaman
73f5eea451
Unl change announcement to connected users. ( #224 )
...
Introduced json and bson messages for unl list announcement.
When the unl set is modified send a json or bson unl list message (according to the user protocol) to all the connected users.
2021-01-19 11:33:27 +05:30
Chalith Desaman
cf02108576
Interface to read patch config from c contract lib. ( #223 )
2021-01-18 14:38:39 +05:30
adheeb-adb
a816b9079b
Return error when unable to create contract directory. ( #221 )
2021-01-15 14:51:44 +05:30
Savinda Senevirathne
fa0c1e8130
Support config patch in c contract library. ( #219 )
2021-01-15 14:49:54 +05:30
Chalith Desaman
0914994772
Replaced ifstreams with file read inside the config and patch config read. ( #220 )
2021-01-15 11:50:26 +05:30
Chalith Desaman
b15d8260cc
Read patch config implementation for js contract lib. ( #218 )
2021-01-12 09:48:14 +05:30
Chalith Desaman
99c768360e
Contract hpargs revamp. ( #217 )
2021-01-11 14:28:01 +05:30
Ravin Perera
11cb57e9ee
Keep hp cfg and patch cfg consistent. ( #216 )
...
* Copy from hp cfg to patch cfg upon startup.
* Persist to hp cfg whenever patch cfg is updated.
2021-01-10 17:48:12 +05:30
Ravin Perera
d39b9a56ec
Fixed crash on foked lcl sync. ( #215 )
2021-01-08 21:25:17 +05:30
Chalith Desaman
12a8252598
Patch config update method for js contract library ( #214 )
...
Load patch.cfg in js contract lib.
Update values of the patch config.
Common method with optional parameters.
2021-01-08 17:38:21 +05:30
Savinda Senevirathne
27b08c0c9f
Stop applying patch config unl changes to hp.cfg file after patch file changes. ( #213 )
2021-01-07 12:12:47 +05:30
Ravin Perera
e8e7921ac1
Single-process hpfs integration. ( #212 )
2021-01-06 21:53:39 +05:30
Savinda Senevirathne
bed8205ca8
Config patch change detection. ( #211 )
...
* Applying patch file changes to hpcore runtime after patch file change detection.
* Removing unl sync functionality.
* Removing subjecting unl changeset to consensus.
2021-01-06 20:02:14 +05:30
Savinda Senevirathne
c87ae6693d
Patch config and hpfs sync refactor. ( #208 )
...
* Terminology changes from state to hpfs.
* Syncing hpfs parents in priority order.
* Changing how the hash is calculate in hpfs response validate check.
2021-01-06 10:50:58 +05:30
Chalith Desaman
a16eb39d1f
User connections enable/disable config flag ( #209 )
2021-01-06 09:36:48 +05:30
Chalith Desaman
e8a3882176
Prevent running multiple hpcore instances from the same directory ( #207 )
2021-01-05 11:18:23 +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
47c0dfd225
Adding support for contract config update via a patch file. ( #206 )
2020-12-28 15:35:17 +05:30
Savinda Senevirathne
63e3050046
Validating and displaying missing config fields in config read. ( #205 )
2020-12-24 11:40:02 +05:30
Ravin Perera
f97d7de530
Moved h32 hash type from hpfs to util. ( #204 )
2020-12-23 21:58:49 +05:30
Ravin Perera
c25ebe66f4
Util helper func simplification. ( #203 )
2020-12-23 21:49:13 +05:30
Ravin Perera
8dc20bdab0
Naming changes and reintroducing key prefix to contract libraries. ( #202 )
2020-12-23 19:23:46 +05:30
Savinda Senevirathne
e835e18d18
New config file structure. ( #201 )
2020-12-23 18:52:58 +05:30
Ravin Perera
1a954ad96e
Implemented output signature checks. ( #200 )
2020-12-22 16:55:44 +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
Ravin Perera
08f09a1e6a
Minor library improvements. ( #198 )
2020-12-21 11:56:04 +05:30
ravinsp
13c6b81b60
Fixed state sync abandon stale requests issue.
2020-12-18 06:26:46 +05:30
Chalith Desaman
21482a3f8a
Input nonce expiry based on max ledger sequence no. ( #197 )
2020-12-17 17:19:27 +05:30
Chalith Desaman
229af3e294
hpfs binary update ( #196 )
2020-12-16 11:33:09 +05:30
Chalith Desaman
99668be944
Added version to the ledger file structure. ( #195 )
2020-12-15 13:01:11 +05:30
priyadharsun
9df8248af7
strdup memory cleanup in hpcore. ( #194 )
...
* strdup memory cleanup in hpcore.
* Updated hpfs binary.
2020-12-14 14:34:26 +05:30
Ravin Perera
bfbf41fb32
Fixed issue in ledger sync top ledger removal. ( #193 )
...
* History response ledger removal fix.
* Consensus code refactor.
2020-12-14 12:35:07 +05:30
Savinda Senevirathne
17313dae29
Comm session race conditions. ( #192 )
2020-12-11 16:36:04 +05:30
Ravin Perera
f2ed9040c0
User protocol upgrade and js client lib. ( #191 )
...
* Unified js client lib for browser and nodejs.
* Client lib multiple connections support.
* Implemented server challenge response.
* Contract guid and version validation.
* Server key validation.
* User json message encoding improvements.
2020-12-11 11:02:58 +05:30
Chalith Desaman
b77a3fc924
Validate peer state response content against the hash. ( #190 )
2020-12-10 17:32:18 +05:30
Chalith Desaman
b86efb2d9b
Recursively deleting directories during state sync. ( #189 )
2020-12-09 13:43:34 +05:30
Savinda Senevirathne
0bc53fe23c
Review UNL message rules. ( #188 )
2020-12-09 13:34:40 +05:30
Ravin Perera
fe9e276f8d
Consensus deadlock fixes and reliability improvements. ( #187 )
...
* Consensus time vote improvements.
* Skipped self proposal in Observer mode.
* Added docker cluster script params.
* Added state/lcl sync abandon threshold.
* Added pubkey display for cluster script.
* Added proposal latency log.
* Added sync completion check to prevent deadlocks.
2020-12-08 15:17:27 +05:30
Savinda Senevirathne
7bf0475b6f
Subject unl list to consensus. ( #186 )
...
* Unl hash in consensus proposals.
* Unl syncing and sync request serving.
* Adding unl hash to the ledger block.
2020-12-08 15:05:38 +05:30
Chalith Desaman
a87e8a0c7e
Subject UNL changeset to consensus. ( #183 )
2020-12-07 13:06:58 +05:30
Ravin Perera
da0eb08512
SIGTERM handler and minor startup improvements. ( #185 )
...
* SIGTERM handler and stderr usage.
* Create-contract state seed dir creation.
2020-12-06 10:38:35 +05:30