Skip to content

Commit

Permalink
bugfix variable assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
achamely committed Jul 13, 2017
1 parent 6233687 commit dde63fc
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions api/send.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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]
Expand Down

0 comments on commit dde63fc

Please sign in to comment.