Currently, without reading the whole code it's hard to understand which keys are used where and is it a full key or a prefix.
Having these small comments helps to understand what each DB stores.
Currently, without reading the whole code it's hard to understand which keys are used where and is it a full key or a prefix.
Having these small comments helps to understand what each DB stores.
Currently, without reading the whole code it's hard to understand which keys are used where and is it a full key or a prefix.
Having these small comments helps to understand what each DB stores.
These comments are pretty minimal. What does "key prefix" mean?
@sipa With the key prefix I meant that this is not the full leveldb key (like DB_BEST_BLOCK = 'B') but only the prefix of it. For instance, to get the coin, we lookup by this key DB_COIN + COutPoint
Let me then add a full description to every key and explain how it's being used.
I'm closing this for now, please open a new PR (or tell me to re-open this one) when you start work on this again.