herald.go/testdata/g.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

2.1 KiB

1g
26702c124856d5168381a32971d8933440a1728fc41575696fd653a4de2f9a8c1f580cf0c229631b0f5d95fceb354cda133e2eb2d34
36707f1511e3a2cb28493f91b85e9e4a9d9d07c86a5ba368e0f859ee36da8701df1c0b52cbf0c0f8a4b1a91f6d0db83a408f5a937d1
46707fd4213cae8d5342a98ba49b255fa80b2a9a6e4bd3a44d30f66444f8732119bc7e0cf0bb47f8f0ab2840987fc06b629f3e6d3f4
56710294a5693224a6222404ba45fd38eb2e77979a4de35a8ea0a26d17445e2f509db23188961b5cd1229b96d2411565adf63731b5c
66716a9f84e02143b50d9034aec126b12d7f2708cc45823640ae4529f8df2dab20386c887d0a1ba1ffa4583b99dff761c01f670c2fa
7672e51bc65c9b97d482b0b720e6cb673c41fe7b5c50687df449bd8cb8d8f526f4189973d084d786ab0927d81c127f56b03c61aa955
867682620db65932047689e5eaf392d6b85be801864b262d40758edb28d1c04fa3a24d8268990516de6846ad94d002ce55640866239
9676e8c320dbbf5eebc2969a93fbc51dd7f6062a7d1c9e2a8e7181a70e2a488b884c8baadb4043a075c6876cb012c67fbec5aa9f615
106772e2ac48891ee3c2c727835702a374ad0cb70fd6985a9c9ee7a0626d78dab431e663289762ce6959be314f91f7b08b1466097fd6
1167847dd1dac117b85d1e20d93580cdf42f00001a7762e6b1b8c2961703a90276dcde6dad182b2d14e23f27dccc927cca7770b9890e
12678f49948c72b7295f12092a24d300eeff894f1dd72e7c456dac5206c5627736924e96ac016a09a88ec5f4835fbe0cf9e294611c88
1367948b9633ab2ec07d7525936254e66f8c957d026c66b5c54b3a685de3ea18f9e69254eec065eb3207ac1f93494fdcd585e9a267a0
14679674c162db8d3bb57c434fe87825625c4d4daf6305425880d80258f7441859b3494415a3fd7398c9e209a19674abd48372b283c6
1567a8d3f17df85502bd644a364721e6364d61635b731efce69a3a05c505e9f9cc5c2241d02099c043d934389b430fd8b185e6dfe6cb
1667bad7f4fb3c6828b6fc4624d43786fc8f55d6eb0f04a1c0a7ffe7acbf974ca18cf3debbd8e1be3d6703f842f57ef14af6d4c336d3
1767c13fb0c65acca5520bc2f59bd91ca3482dbec1567fdc6989cd778baad45cd98358ea060237b169a4aeaeb14da6ac4686b7858c9f
1867d4314588b4424b0ee026536b9bd7857f11cab2eec63fd7a85a533b8591577bab805104708ba5458fab0e343d46b3e24a28b92cb5
1967d734244f85f32a58e34e2d9cadf225a56973d32fd19a6307c24470b3973973319770bdb896218bb58d1f2d07c7226266075057d0
2067d9c159c5d5e407e6b0a4cacf9d6fe62a55b0fedc89cbdb903fdfe0b44e74b0a69eed3de7029f18c28f77e5509f8ace766ab86610
2167fafc73d674250f11e559ab08b287f5714e5317611752ffbf9807bb2e4e480bf045b4bacc472befe755287384b5a526065a58c065