From c61c9726b065cc108caf4204e79845a6802eb81c Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Tue, 28 Apr 2020 13:28:30 -0400 Subject: [PATCH] lbry/blockchain/constants.py -> lbry/constants.py --- lbry/blockchain/constants.py | 27 --------------------------- lbry/constants.py | 25 +++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 27 deletions(-) delete mode 100644 lbry/blockchain/constants.py diff --git a/lbry/blockchain/constants.py b/lbry/blockchain/constants.py deleted file mode 100644 index 34b8baa88..000000000 --- a/lbry/blockchain/constants.py +++ /dev/null @@ -1,27 +0,0 @@ -NULL_HASH32 = b'\x00'*32 - -CENT = 1000000 -COIN = 100*CENT - -TIMEOUT = 30.0 - -TXO_TYPES = { - "other": 0, - "stream": 1, - "channel": 2, - "support": 3, - "purchase": 4, - "collection": 5, - "repost": 6, -} - -CLAIM_TYPE_NAMES = [ - 'stream', - 'channel', - 'collection', - 'repost', -] - -CLAIM_TYPES = [ - TXO_TYPES[name] for name in CLAIM_TYPE_NAMES -] diff --git a/lbry/constants.py b/lbry/constants.py index 1c0072d2b..34b8baa88 100644 --- a/lbry/constants.py +++ b/lbry/constants.py @@ -1,2 +1,27 @@ +NULL_HASH32 = b'\x00'*32 + CENT = 1000000 COIN = 100*CENT + +TIMEOUT = 30.0 + +TXO_TYPES = { + "other": 0, + "stream": 1, + "channel": 2, + "support": 3, + "purchase": 4, + "collection": 5, + "repost": 6, +} + +CLAIM_TYPE_NAMES = [ + 'stream', + 'channel', + 'collection', + 'repost', +] + +CLAIM_TYPES = [ + TXO_TYPES[name] for name in CLAIM_TYPE_NAMES +]