071aa2a7ad
* 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. |
||
---|---|---|
.. | ||
a.csv | ||
a_resolve.csv | ||
ab.csv | ||
b.csv | ||
B.csv | ||
C.csv | ||
c.csv | ||
D.csv | ||
d.csv | ||
E.csv | ||
e.csv | ||
E_resolve.csv | ||
F.csv | ||
f.csv | ||
F_cat.csv | ||
F_resolve.csv | ||
FULL_resolve.csv | ||
g.csv | ||
G.csv | ||
G_2.csv | ||
G_resolve.csv | ||
h.csv | ||
H.csv | ||
I.csv | ||
I_resolve.csv | ||
J.csv | ||
J_resolve.csv | ||
K.csv | ||
L.csv | ||
M.csv | ||
N.csv | ||
O.csv | ||
P.csv | ||
P_resolve.csv | ||
Q.csv | ||
R.csv | ||
R_resolve.csv | ||
s.csv | ||
S.csv | ||
s_resolve.csv | ||
S_resolve.csv | ||
T.csv | ||
u.csv | ||
V.csv | ||
V_resolve.csv | ||
W.csv | ||
W_resolve.csv | ||
X.csv | ||
x.csv | ||
X_resolve.csv | ||
Y.csv | ||
Z.csv | ||
Z_resolve.csv |