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

1f
2660d649ba1defa4ab5ab71f8a977d7f7cedb11056e919be5811844077f4660af66afa9a59a5ad17cf5c541524e780fe2137bfa250c
36623c6895027f70a5330bbcb1153d635abcb4d52248dadcde1a6f676d4004eacd399f825006ddf136d1e92b1c92113377b3e1741b4
4664f095b24484ebce8f31fbf008e63cc4aa163d401c0c4a751f569c1f9c01531f57ba674b2ad2338d9c08f9e9fc85b0209d15466b2
5665201a38de7d7243df717c9f9279cdd30105f0f77d9293577cc0d51fe3a5bee78fea9b2b2222e6c2aa0d26a4ef4bfb7dd095587e8
6665328b2449e537b0ca4733f87ac5ebcdf033c5ebd624f80a361e47c7eb1b815e8714a40f67b4f642a5546547a3fcb5bf5593d8fab
7665ec882021f55b1fbaa5fad00df5c5d07633b7af31e917fbc04385290d654f711bdef12773dd54b6b5ea26fe2a9d58ed051f2cb7f
86671c131cd433750ba6d3908150ca4910841164b74a2ebfbdf7a23024c340a45f201645aa46f48bc1fdd8d34ed83fcffbf1ee90523
9667fb93d9ae877ba11f337f21422b06798525808024710649e06619e13250754937e9c17c20b07434751171aac2f2f78b184aa0146
10668ed5f39a5db059dc3261377f2a47728f7a357d338dd8ca749b87f43e290904749a546fe319c9d53e765f065bb8beb234a117655e
1166951782f6ba94f2b71e46d0cc4a2411b14d81eb704f5c9434dd0886c57c2530991cebd973e1b50d5ba8fcfc019e54561217a49bbb
1266970565dfe2b01cad49b73a085a3c3f7a3be61c4cf6ca0ae18c896d9bc97c5a9d0c3a06256485f59c77fb91780b213f933b80f48b
13669f6a30a6712062da0cc27181845c04d7430abf735c6604bfd63b871daceb7893dd618850458974fe4108871c1a1323fb8ae34e4e
1466a9a7b89b78553592acf3dfc417c1d7654dab32730561f28c3a5ea0027ecb3c53fa068772a6b7cb73d23104a14f9aba8cd1f070a2
1566aba81567ba48f001f843f01354d575c2e2687847b0f6ae2c1db8263f7e11fc79423109e718d1f3c30bd123c4243401b5e4f1fee6
1666b569cc3d28be4466fb28d147f66d6d8769598964ecee392ad8217f325508ba38d280436fb0a520b79a9627e5e18197bf55540885
1766d4662cd100d66055917d6342d48f49d948fcc2555762a8ac767fa30d2ca76db7081f8a2e4f5da4f0bf92d29e1322da9a154cc3d6
1866d6fa6ac71d0255dd3f185de6480d5b4316b6b0505fc193e5e51b3bd8e95f4eb9df63236da7abf678fc47c0b339ceb5c127d0f488
1966e5b6c7c231a02a32eedd8383a5750fd135244a0358c70ffbfada12550f24bf7931cee06eb2e267dec3560e2e46843e383415f163
2066e673cce02c2163f756491ef05d7535ceb578e215b8db43d1f6e62361e2e3b8fa765f79c08ddfb3035caa06f8250d6d1b063a7140
2166fc4ad75184e6029c805d9494eed4e81be770c002fc7ac5e785f73732d95183d6bdc3423d41a074fc3f04b1304bae1efa652edde1