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 +]