diff --git a/hive/server/condenser_api/get_state.py b/hive/server/condenser_api/get_state.py index 61487be06069d89b6927c94684f57b63e5c56eb5..a674b563764971cd385fc3272f577d11b19a5747 100644 --- a/hive/server/condenser_api/get_state.py +++ b/hive/server/condenser_api/get_state.py @@ -299,8 +299,8 @@ async def _get_props_lite(db): return dict( time=raw['time'], #* - sbd_print_rate=raw['sbd_print_rate'], - sbd_interest_rate=raw['sbd_interest_rate'], + sbd_print_rate=raw['hbd_print_rate'], # TODO: rename this key to hbd_ after 0.24 + sbd_interest_rate=raw['hbd_interest_rate'], # TODO: rename this key to hbd_ after 0.24 head_block_number=raw['head_block_number'], #* total_vesting_shares=raw['total_vesting_shares'], total_vesting_fund_steem=raw['total_vesting_fund_hive'], diff --git a/hive/utils/normalize.py b/hive/utils/normalize.py index 3de9a6e8e4cb3783c70e3cae7072581af1639d57..447654164685dc3b8fc72252db6ad23cdc9d86ab 100644 --- a/hive/utils/normalize.py +++ b/hive/utils/normalize.py @@ -244,6 +244,9 @@ def number_to_json_value(number): """ if number > 0xFFFFFFFF: return str(number) + from decimal import Decimal + if isinstance(number, Decimal): + return str(number) return number def time_string_with_t(time_iso8601):