ravinsp
33e536c31b
Used consistent wording for HotPocket.
2023-05-07 14:08:55 +05:30
ravinsp
7a4764b7c2
Moved C contract library to separate repo.
2022-08-09 17:56:44 +05:30
Chalith Desaman
62e89c3d0e
Missing config restructure changes for sample contracts ( #369 )
2022-08-04 12:04:49 +05:30
chalith
164595c4d7
Calculate majority threshold when needed
2022-07-29 13:51:37 +05:30
Udith Indrakantha
7f81d9ec10
Supporting config changes in c contract ( #366 )
2022-07-29 09:05:45 +05:30
ravinsp
69481e5265
Updated examples nodejs contract lib version.
2022-07-14 20:52:14 +05:30
ravinsp
b8dfd116c8
Expose private key to contract args.
2022-07-14 20:31:11 +05:30
Ravin Perera
050b6f5bd5
Upgraded nodejs dependencies to 16.x ( #364 )
2022-03-08 21:12:26 +05:30
Ravin Perera
5c349dfa95
Read requests synchronous replies. ( #361 )
2022-02-26 07:48:02 +05:30
Ravin Perera
5cef95c9f6
Enabled and fixed compiler warnings. ( #359 )
2022-01-28 16:03:34 +05:30
Ravin Perera
cf695af30b
Remove appbill. ( #358 )
2022-01-27 10:39:18 +05:30
Ravin Perera
589199a1af
Passed unl stats to contract. ( #357 )
2022-01-26 18:51:01 +05:30
Chalith Desaman
150df0eabb
Specify environment variables to contract binary ( #355 )
2022-01-11 13:41:33 +05:30
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