2021-02-19 19:19:58 +01:00
|
|
|
import enum
|
|
|
|
|
|
|
|
|
|
|
|
class DB_PREFIXES(enum.Enum):
|
|
|
|
claim_to_support = b'K'
|
|
|
|
support_to_claim = b'L'
|
|
|
|
|
|
|
|
claim_to_txo = b'E'
|
|
|
|
txo_to_claim = b'G'
|
|
|
|
|
|
|
|
claim_to_channel = b'I'
|
|
|
|
channel_to_claim = b'J'
|
|
|
|
|
|
|
|
claim_short_id_prefix = b'F'
|
2021-05-24 18:35:26 +02:00
|
|
|
claim_effective_amount_prefix = b'D'
|
2021-02-21 23:26:13 +01:00
|
|
|
claim_expiration = b'O'
|
2021-02-19 19:19:58 +01:00
|
|
|
|
2021-05-05 22:17:32 +02:00
|
|
|
claim_takeover = b'P'
|
|
|
|
pending_activation = b'Q'
|
2021-05-20 19:31:40 +02:00
|
|
|
activated_claim_and_support = b'R'
|
|
|
|
active_amount = b'S'
|
2021-05-05 22:17:32 +02:00
|
|
|
|
2021-02-19 19:19:58 +01:00
|
|
|
undo_claimtrie = b'M'
|
|
|
|
|
|
|
|
HISTORY_PREFIX = b'A'
|
|
|
|
TX_PREFIX = b'B'
|
|
|
|
BLOCK_HASH_PREFIX = b'C'
|
|
|
|
HEADER_PREFIX = b'H'
|
|
|
|
TX_NUM_PREFIX = b'N'
|
|
|
|
TX_COUNT_PREFIX = b'T'
|
|
|
|
UNDO_PREFIX = b'U'
|
|
|
|
TX_HASH_PREFIX = b'X'
|
|
|
|
|
|
|
|
HASHX_UTXO_PREFIX = b'h'
|
2021-02-24 21:20:44 +01:00
|
|
|
db_state = b's'
|
2021-02-19 19:19:58 +01:00
|
|
|
UTXO_PREFIX = b'u'
|
|
|
|
HASHX_HISTORY_PREFIX = b'x'
|