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.
@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.