From 821be29f41a436e3b2335ced9bf1c4a96db2615e Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Sat, 3 Jul 2021 11:48:22 -0400 Subject: [PATCH] rename effective_amount prefix --- lbry/wallet/server/db/__init__.py | 2 +- lbry/wallet/server/db/prefixes.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lbry/wallet/server/db/__init__.py b/lbry/wallet/server/db/__init__.py index 5384043d2..a56958c29 100644 --- a/lbry/wallet/server/db/__init__.py +++ b/lbry/wallet/server/db/__init__.py @@ -13,7 +13,7 @@ class DB_PREFIXES(enum.Enum): channel_to_claim = b'J' claim_short_id_prefix = b'F' - claim_effective_amount_prefix = b'D' + effective_amount = b'D' claim_expiration = b'O' claim_takeover = b'P' diff --git a/lbry/wallet/server/db/prefixes.py b/lbry/wallet/server/db/prefixes.py index 4d0cef858..7115b9bd3 100644 --- a/lbry/wallet/server/db/prefixes.py +++ b/lbry/wallet/server/db/prefixes.py @@ -732,7 +732,7 @@ def effective_amount_helper(struct_fmt): class EffectiveAmountPrefixRow(PrefixRow): - prefix = DB_PREFIXES.claim_effective_amount_prefix.value + prefix = DB_PREFIXES.effective_amount.value key_struct = struct.Struct(b'>QLH') value_struct = struct.Struct(b'>20s') key_part_lambdas = [