1
0

Added arbitrary outputs

write your own output scripts should you be so inclined.
This commit is contained in:
dabura667
2015-01-18 02:37:44 +09:00
parent 9a6d98f899
commit b741dd89ca
2 changed files with 24 additions and 17 deletions

View File

@@ -73,9 +73,15 @@ class PayToEdit(ScanQRTextEdit):
amount = 0
else:
x, y = line.split(',')
_type = 'address'
address = self.parse_address(x)
amount = self.parse_amount(y)
n = re.match('^CUSTOM_OUT\s+([0-9a-fA-F]+)$', x.strip())
if n:
_type = 'custom'
address = n.group(1).decode('hex')
amount = self.parse_amount(y)
else:
_type = 'address'
address = self.parse_address(x)
amount = self.parse_amount(y)
return _type, address, amount