Ravin Perera
c720a777ce
Control message to update peers. ( #351 )
2021-11-02 14:13:21 +05:30
Ravin Perera
9bc9404e07
Used npm package for client and contract lib examples. ( #350 )
2021-10-11 20:16:50 +05:30
Ravin Perera
647759501f
Refactored vote status reporting. ( #349 )
...
* Refactored global sync status tracking.
* Updated streamer for vote status.
* Docker image now uses 'latest' tag.
* Updated hp version.
2021-09-22 09:28:01 +05:30
Ravin Perera
6dc0776b56
Large cluster optimizations. ( #348 )
...
* Added sync log to streamer.
* Fixed ledger closing attempt while syncing.
* Added diagnostic contract.
* Reset to stage 0 on unreliable votes.
* Reduced peer msg age threshold.
* Added health tracking.
* Weakly-connected detection improvement.
* Increased version 0.5.1.
* Improved client lib server version check.
* Added health logging support to text client.
* Added weakly connected status in status response.
* Increased max peers limits when serializing.
* Local docker cluster manual ip.
* Updated vultr script vm region order.
* Sync status reporting improvement.
* Added milliseconds to logging.
2021-09-17 11:53:49 +05:30
Savinda Senevirathne
9275838f5a
Increasing event batch size in stream js and minor change in js_client package json script. ( #347 )
2021-08-27 10:55:00 +05:30
Chalith Desaman
4a5c3554bd
Hotpocket version changes ( #336 )
2021-07-28 16:33:58 +05:30
Ravin Perera
cdf3a73c7d
Added ncc build to nodejs contracts. ( #334 )
2021-07-22 12:38:02 +05:30
Chalith Desaman
2093b2a61e
C contract library changes. ( #327 )
2021-06-25 14:19:54 +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
ravinsp
6cfa47418c
Minor updates to echo contract and hpfs.
2021-05-23 17:14:34 +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
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
Ravin Perera
954914e932
Fixed get status peer address formatting crash. ( #295 )
2021-04-28 14:37:26 +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
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
Ravin Perera
ef42d4c986
Ledger query results raw input/output support. ( #277 )
2021-03-30 15:44:20 +05:30
Ravin Perera
948113398c
Ledger query infrastructure. ( #275 )
...
* Added json ledger query param parser.
* Added initial query response creation.
* Updated client lib.
* Implemented get ledger by seq no.
* Added ledger query execution wrappers.
* Included log record info.
* Fixed empty output hash issue.
* Added bson support.
* Added db file existance check.
* Added requesy/reply tracking for queries in client lib.
* Improved multi connection usage in client lib.
* Added genesis ledger query support.
* Updated naming convention of query result fields.
* Comments.
* Used sqlite bind() for query param.
* Used binary hashes in ledger sqlite db.
* Missing const.
2021-03-29 11:20:15 +05:30
Ravin Perera
31344fe266
Updated js client and contract libs. ( #273 )
...
* Updated js contract lib to for ES spec compatibility.
* Added 'ed' prefix to generated keys in js client lib.
* Fixed js client lib incorrect connection timeout tracking.
2021-03-23 09:42:48 +05:30
Chalith Desaman
b7e9301797
Formatting the hp config validation error message ( #271 )
...
* Formatting config validation error
* Camel case typo in js client lib
* Changed error message
2021-03-16 18:40:18 +05:30
Savinda Senevirathne
b45cdb999d
Include hp version number on all required places. ( #265 )
...
* Adding HP version header to binary files and adding hp table to ledger.sqlite.
* Updating hp_version in user challenge message.
* Minor improvement.
2021-03-10 20:08:04 +05:30
adheeb-adb
473fd4183c
User message with more details ( #263 )
...
* user message with more details
* PR fixes
2021-03-08 12:25:29 +05:30
Chalith Desaman
363116fc2a
Added user input max ledger seq offset limit config ( #256 )
...
- Added new config for max input ledger offset inside contract section.
- Updated implementation of getting and updating patch config inside node and c contracts.
- Skip inputs if max ledger offset exceeds, when handling user inputs and nup messages.
2021-02-24 09:19:36 +05:30
Ravin Perera
6b8d60a404
Separated lcl string usage to sequence no and hash. ( #251 )
2021-02-18 18:28:38 +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
4c4e109233
Contract process resource limits. ( #243 )
2021-02-15 16:36:10 +05:30
ravinsp
3c6e718245
Minor fix in C contract lib.
2021-02-15 14:50:22 +05:30
Ravin Perera
0937ca0bbe
Npl outputs round limit. ( #242 )
2021-02-15 14:50:03 +05:30
Ravin Perera
0de7983504
User outputs round limit. ( #241 )
...
Implemented user outputs round limit and upgraded the contract libraries to support the configs.
2021-02-15 14:23:47 +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
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
Chalith Desaman
eef6448f08
Handle unl change announcement in js client library. ( #225 )
2021-01-19 15:29:17 +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
Savinda Senevirathne
fa0c1e8130
Support config patch in c contract library. ( #219 )
2021-01-15 14:49:54 +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
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
Ravin Perera
8dc20bdab0
Naming changes and reintroducing key prefix to contract libraries. ( #202 )
2020-12-23 19:23:46 +05:30
Ravin Perera
1a954ad96e
Implemented output signature checks. ( #200 )
2020-12-22 16:55:44 +05:30
Ravin Perera
08f09a1e6a
Minor library improvements. ( #198 )
2020-12-21 11:56: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
Ravin Perera
b2fd8ae4b5
Contract and client library improvements. ( #184 )
...
* Added tty check to contract libs.
* Javascript browser-native client.
* Removed hex encoding in user json outputs.
* Updated file contract for new contract library.
2020-12-05 09:08:24 +05:30
Ravin Perera
596fd2b43c
Added contract id verification. ( #180 )
...
* Added contract id config.
* Verify contract id with user/peer challenge.
* Updated cluster scripts.
* Updated node client lib for contract id verification.
2020-12-01 16:08:41 +05:30
Ravin Perera
dfe42f827b
Refactored node contract lib control flow. ( #176 )
2020-11-30 17:39:07 +05:30
Ravin Perera
efbd775fa1
Refactored C contract lib interface. ( #175 )
2020-11-30 10:03:06 +05:30