Commit Graph

12968 Commits

Author SHA1 Message Date
Nik Bougalis
b277c353a8 Eliminate dead bytes from nodestore encoding:
The legacy nodestore encoding for blobs had an 8 byte prefix. Originally
the first 4 bytes stored the sequence number of the ledger to which the
encoded object belogned; the next 4 bytes were never specified rigidly
and some versions stored a redundant copy of the ledger sequence while
others simply set the bytes to 0.

Eventually that scheme was abandoned, and the first 8 bytes were just
set to 0 and ignored when reloading a blob.

This commit removes the unusued 8 byte legacy prefix. The change is
makes it impossible to load old databases with this code and for old
versions to load databases created with this code.
2023-01-07 15:36:34 -08:00
Richard Holland
8b298ab3c0 more gov hook bug fixes 2022-12-21 14:37:15 +00:00
Richard Holland
171568ded7 gov hook updates, tested initial distribution some voting 2022-12-21 14:07:15 +00:00
Richard Holland
0a6708c673 allow small data as int64 again on state api 2022-12-21 12:31:39 +00:00
Richard Holland
42da01d87c xpop_history bug 2022-12-21 11:43:57 +00:00
Richard Holland
4c8542ad06 add headers for hook compilation 2022-12-21 11:38:56 +00:00
Richard Holland
3943c1c44c governance hook finished, compiling, not tested 2022-12-21 11:30:22 +00:00
Richard Holland
08374421ce add KEYLET_HOOK_DEFINITION to util_keylet 2022-12-21 11:29:47 +00:00
Richard Holland
9050e78d45 first version of the governance hook, almost finished. compiling, not tested 2022-12-20 17:39:34 +00:00
Richard Holland
0ef979a17b change HookOn to uint256 2022-12-20 10:55:28 +00:00
Richard Holland
39ecdb6795 Add NetworkID field to Transaction common fields, enforced when network id > 1024 2022-12-19 16:48:40 +00:00
Richard Holland
05f961c77c first half of XPOP_HISTORY 2022-12-19 16:45:13 +00:00
Richard Holland
cc1d374e11 fix js test rig 2022-12-19 16:36:12 +00:00
Richard Holland
6e001cf0bf enforce cmdline quorum when provided 2022-12-18 13:34:04 +00:00
Richard Holland
339b40bfb4 filter for ttclaimreward until hookon is expanded to 256bits 2022-12-17 17:02:18 +00:00
Richard Holland
97fa694188 definitions.json 2022-12-17 16:03:35 +00:00
Richard Holland
fef1f53c8b add reward time to BalanceRewards amendment 2022-12-17 15:09:50 +00:00
Richard Holland
4ab2e77d53 time based rewards 2022-12-17 15:06:20 +00:00
Richard Holland
fcf8a61368 first version of reward_hook, needs more testing 2022-12-17 10:58:33 +00:00
Richard Holland
c118705a38 bug fix on ClaimReward tx template 2022-12-17 10:20:47 +00:00
Richard Holland
35bf8bef5a update featureBalanceRewards to operate on metdata (compiling not tested) 2022-12-17 09:33:14 +00:00
Richard Holland
979f44d080 bug fix 2022-12-16 19:56:54 +00:00
Richard Holland
17726c8141 remove js tests for hooks 2022-12-16 13:53:35 +00:00
Richard Holland
81bcb621a7 ttINVOKE 2022-12-16 13:40:27 +00:00
Richard Holland
8a0635396a ttInvoke part 1 2022-12-16 13:40:23 +00:00
Richard Holland
44425f14f6 Balance Rewards amendment (compiling not tested) 2022-12-16 11:55:53 +00:00
Richard Holland
d48ac760d4 set earliest seq to 1 2022-12-16 11:54:37 +00:00
Richard Holland
9a826cc54e change min ledger seq to 3 2022-12-14 08:08:03 +00:00
Richard Holland
3107787cad more wasmedge build stuff 2022-12-13 13:52:59 +00:00
Richard Holland
26522c1427 fix wasmedge cmake 2022-12-13 12:37:30 +00:00
Richard Holland
1b70420276 fix zero ips bug 2022-12-13 10:29:36 +00:00
Richard Holland
b0ebd8e3eb update to wasmedge 0.11 (untested) 2022-12-13 10:19:08 +00:00
Richard Holland
f467ce5fa6 change desired starting amendments to default yes 2022-12-12 15:39:23 +00:00
Richard Holland
f2d54f8427 change config filename defaults 2022-12-12 15:11:06 +00:00
Richard Holland
61ff4fab49 add xahaud release builder 2022-12-12 13:51:06 +00:00
Richard Holland
8a7fa7111d add wasms for hook tests 2022-12-12 13:49:50 +00:00
Richard Holland
a915eab15b change version string, remove bootstrap servers 2022-12-12 13:48:51 +00:00
Richard Holland
d9e03f9ffb state_set (release_marker) 2022-12-12 11:54:00 +00:00
Richard Holland
e4aa7db5cb increase size of hook state to 256 bytes, parameters too, change the reserve requirement to 1:1 for hook state, allow weak execution on rollback if hook_again was specified, add further state_set tests 2022-12-11 13:03:08 +00:00
Richard Holland
90949b8a59 start of state api testing 2022-12-10 14:19:20 +00:00
Richard Holland
59b9074d03 otxn_type test 2022-12-06 13:53:47 +00:00
Richard Holland
3d59072c97 otxn_slot test 2022-12-06 13:28:43 +00:00
Richard Holland
307c748394 add otxn_id test 2022-12-06 12:45:29 +00:00
Richard Holland
7ca435d8f7 remove otxn_field_txt api (old api that should have been removed earlier) 2022-12-06 11:19:28 +00:00
Richard Holland
7f71535773 add util_keylet tests for new functionality, clean up 2022-12-06 11:10:19 +00:00
Richard Holland
1d6daf71de add slot_type test, allow util_keylet to accept a 3 character ascii currency code for KEYLET_LINE 2022-12-06 10:57:47 +00:00
Richard Holland
cf3c9205f6 slot_subfield test 2022-12-02 13:08:56 +00:00
Richard Holland
ed974de37b slot_subarray test, fix get_free_slot bug 2022-12-01 11:42:01 +00:00
Richard Holland
5d19a162f6 slot_size test 2022-11-29 11:37:56 +00:00
Richard Holland
7f72ef014b slot_set bug fixes, slot_set test 2022-11-29 11:25:28 +00:00