diff --git a/msc_validate.py b/msc_validate.py index 59f355a..05a9868 100644 --- a/msc_validate.py +++ b/msc_validate.py @@ -1247,8 +1247,8 @@ def check_mastercoin_transaction(t, index=-1): # invalidate accept for addresses that already have a running accept from that address try: - bids_hash_list=bids_dict[sell_offer_tx['tx_hash']] - for b_hash in bids_hash_list: + offers_hash_list=offers_dict[sell_offer_tx['tx_hash']] + for b_hash in offers_hash_list: b = tx_dict[b_hash][-1] try: payment_expired=b['payment_expired'] @@ -1265,7 +1265,7 @@ def check_mastercoin_transaction(t, index=-1): return False debug('no bids from '+t['from_address']+' on sell offer yet') except KeyError: - debug('no bids yet on sell offer yet') + debug('no bids on sell offer yet') # amount accepted is min between requested and offer amount_accepted=min(float(accept_amount_requested),float(amount_available))