From dde63fcead1bce40c09e7883c89d42ae0bc170b3 Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 13 Jul 2017 13:28:03 -0500 Subject: [PATCH] bugfix variable assignment --- api/send.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/api/send.py b/api/send.py index 7272729df..86b30fef6 100644 --- a/api/send.py +++ b/api/send.py @@ -8,11 +8,6 @@ from msc_apps import * import random -#dust_limit=2730 -testnet = False -magicbyte = 0 - - def send_form_response(response_dict): expected_fields=['from_address', 'to_address', 'amount', 'currency', 'fee'] # if marker is True, send dust to marker (for payments of sells) @@ -27,6 +22,9 @@ def send_form_response(response_dict): if 'testnet' in response_dict and ( response_dict['testnet'] in ['true', 'True'] ): testnet =True magicbyte = 111 + else: + testnet = False + magicbyte = 0 if response_dict.has_key( 'pubKey' ) and is_pubkey_valid( response_dict['pubKey'][0]): pubkey = response_dict['pubKey'][0]