Revise economy disabling in PubKeyHandler
@@ -106,7 +106,8 @@ class PubKeyHandler(BasicHandler):
account_address = AccountHandler.make_address_from_data(signer_pubkey)
account = get_account_by_address(context, account_address)
- if account.balance < PUB_KEY_STORE_PRICE and ENABLE_ECONOMY:
+ if ENABLE_ECONOMY:
+ if account.balance < PUB_KEY_STORE_PRICE:
raise InvalidTransaction('Not enough tokens to register a new pub key. Current balance: {}'
.format(account.balance))
account.balance -= PUB_KEY_STORE_PRICE
