mastercoin-MSC/mastercoin-tools — pull request #75 by faizkhan00 (2014-07-04 23:26:13+00:00)
Title: Add checks

property_type = t['property_type']
+ if int(property_type) > 2:
+ mark_tx_invalid(tx_hash, 'Property type > 2 not implemented')
+ return False
+
+ #Add this test soon
+ prop_name = t['propertyName']
+ #if prop_name = "":
+ # mark_tx_invalid(tx_hash, 'Property name is null')
+ # return False
+
prev_prop_id = int(t['previous_property_id'])
#prop_cat = t['propertyCategory']
#prop_subcat = t['propertySubcategory']
- prop_name = t['propertyName']