delegate determining the burn output and value to the operation; don't try to do it universally

This commit is contained in:
Jude Nelson
2017-09-21 19:02:33 -04:00
parent 6f6a1c401e
commit f57c1e14b2

View File

@@ -166,8 +166,6 @@ def db_parse( block_id, txid, vtxindex, op, data, senders, inputs, outputs, fee,
log.error("Skipping unrecognized opcode")
return None
op_fee = get_burn_fee_from_outputs( outputs )
log.debug("PARSE %s at (%s, %s): %s" % (opcode, block_id, vtxindex, data.encode('hex')))
# get the data
@@ -180,10 +178,6 @@ def db_parse( block_id, txid, vtxindex, op, data, senders, inputs, outputs, fee,
if op is not None:
# propagate fees
if op_fee is not None:
op['op_fee'] = op_fee
# propagate tx data
op['vtxindex'] = int(vtxindex)
op['txid'] = str(txid)