Skip to content

Commit 90462c6

Browse files
committed
k
1 parent cae97c4 commit 90462c6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

workertasks.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def add_output_db(blockn):
8686
databases.add_color(coloraddress, "source_address", coloramt, "color_name")
8787
else:
8888
oldamount=oldamount[0][2]
89-
databases.edit_color(coloraddress, oldamount+coloramt)
89+
databases.edit_color(coloraddress, int(oldamount)+int(coloramt))
9090

9191
for inps in tx[1]['transferred']:
9292
#TRANSFERS
@@ -96,14 +96,15 @@ def add_output_db(blockn):
9696
spent="False"
9797
spentat=""
9898
destination=str(inps['destination_address'])
99+
print tx
99100
txhash=str(tx[0][0:len(tx[0]-2)])
100101
txhash_index=str(tx[0])
101102
blockmade=str(blockn)
102103
prev_input=str(inps['previous_input'])
103104
#CHECK AMT ON PREVIOUS INPUT
104105
oldamt=databases.read_output(prev_input, True)
105106

106-
if oldamt>=coloramt: #LEGITIMATE
107+
if oldamt>=int(coloramt): #LEGITIMATE
107108
#ADD NEW OUTPUT
108109
databases.add_output(btc,coloramt,coloredaddress,spent,spentat,destination,txhash,txhash_index, blockmade, prev_input)
109110

0 commit comments

Comments
 (0)