herald.go/testdata/c.csv
Jonathan Moody 071aa2a7ad
Catchup to python-herald schema. Plus lots of refactoring. (#49)
* Make prefixes_test.go more resilient against garbage left
by a prior crash. Also correct error logging.

* Don't do the ones' complement thing with DBStateValue fields
HistFlushCount, CompFlushCount, CompCursor. Python-herald
doesn't do it, and it presents one more irregular case for
(un)marshalling fields.

* Simplify type-specific partial packing, and simplify dispatch for pack key/value.

* Add struct field annotations and refactor to prepare for
use of "restruct" generic packing/unpacking.

* Add dynamic pack/unpack based on "restruct" module.
Dispatch normal pack/unpack through tableRegistry[] map
instead of switch.

* Add 5 new prefixes/tables (TrendingNotifications..HashXMempoolStatus).

* Undo rename. TouchedOrDeleted -> ClaimDiff.

* Fixup callers of eliminated partial pack functions. Have them use key.PartialPack(n).

* Add pluggable SerializationAPI. Use it in prefixes_test.
Populate PrefixRowKV.RawKey,RawValue when appropriate.

* Undo accidental bump of rocksdb version.

* Add .vscode dir to gitignore.

* Fix ClaimToChannelValue annotation. Implement BlockTxsValue workaround
as I can't find the right annotation to get it marshalled/unmarshalled.

* Strengthen partial packing verification. Fix bugs
in UnpackKey/UnpackValue for new types.

* Remove .DS_Store, and ignore in future.

* Fix MempoolTxKey, TouchedHashXValue. Remove some unneeded struct tags.

* Generate test data and complete the tests for the new tables.
Add Fuzz tests for TouchedHashXKey, TouchedHashXValue with
happy path test data (only).

* Move tableRegistry to prefixes.go and rename it prefixRegistry.
Other minor fixes, comments.

* Add test that runs through GetPrefixes() contents, and verifies
they are registered in prefixRegistry.
2022-08-16 08:45:41 +03:00

1.6 KiB

1c
2631457da9061c90a8fd211994ba8e3701a76c43fa66937673fe41d47b10d8b768793c75e4b2bb35784
3632de81b0213a1b6e390e4c1859dba94b2b0e9a74e360a2b9e1326b6b9eb9ad8ecc591aa54c365dafa
463325af388b77d3ed3df8a5b1483b83fb0b5153ad51de15ac0b3985bb638840f1c0c7aadaa32848fc1
56339c7574004d908068b73e2f898a241dceaa19d2e4f5fd2c6b55b277d1598b93cad3cbcdbdc796c04
66363d895c26d023913ae5c84680d8acbf0c4b2dd6fa1842a2c9c33af364b69814cc868fadc48547ef9
7637d45cd2b29ba27353f889660780d2c5edd0d490058c06dd16597a63fa0de8aaf717e031029830cc1
8637e1d5b825273eaf7457f40d97fc18ab2f99e25552e14e1852c9e0e7145297d8eaee06f36567a529c
9638151f59e498873ef82ef0271186f0b60b9ceeaa10aec120e9b64b4276a1059e4ecf19560b566d503
106384e22f9b0fc6f63c9a221786091ecf02b0df2925895b8132e12f4a8a130f1419ff4ae3a9bb8a31ee
1163a92ad4fe7abbf72db94f49092764329c4d9b5cf30115eb2a152300368cecfaf42debe1e7cccba9cc
1263ab7cc5574087640b78b46e9548cfbefabc581e479883eb701f8e2f0abf79e263c3bd3fa29085f454
1363b7cceb793d1e8a3729c9f9bc7a580b7d3d1b42a3c13c5e99fb5b20d556d3362da5e4e880b8feec7a
1463b9b943c661dfad86644fdf34d956273996a261692227d6a98b4aeb0ad6f6275025df1fb2a173c5a7
1563bba32a7015a47db0da6381c30f95200858637fb82cf367ee83841279d3c9a345e87f02ba431479fe
1663beea81eeec6fadf422df5800d013278ccd351dc77cabf363d3ea0bcc5e7a5453855d96220fc02e97
1763bf6872e4541eaa7ffe0659e11eff43520a6571a634576c56d01ae01321c2617c17767446f624a348
1863cce2b1651ed5575052abbb75747d059b5a54e09c7a330b5646a4dbf4d155da400b30038a0ccd3bdc
1963d5165b6b9c42249409c8e616fc17481bd296f69d0b4564f2a18bff62b8cbe7aea8a46aa2e83432a3
2063e616d85d1425ea0686aa58438ff416db5176da015cef2eb38c1e763b02f9f3f1b4c6f0e5dd18cb19
2163f5476e70301ba6fdd6d0317b2c03d678e2623ee66fd4110af04df6c132e1d2d14feeb17ca34b65f3