mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-24 03:45:38 +08:00
delegate determining the burn output and value to the operation; don't try to do it universally
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user