Skip to content

Commit

Permalink
Determine witness type at input level
Browse files Browse the repository at this point in the history
  • Loading branch information
Cryp Toon committed Jul 10, 2024
1 parent 39c37c9 commit d41f0a5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bitcoinlib/services/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -732,8 +732,7 @@ def _parse_db_transaction(db_tx):
if n.ref_txid == b'\00' * 32:
t.coinbase = True
t.add_input(n.ref_txid.hex(), n.ref_index_n, unlocking_script=n.script, address=n.address,
sequence=n.sequence, value=n.value, index_n=n.index_n, witnesses=n.witnesses, strict=False,
witness_type=db_tx.witness_type.value)
sequence=n.sequence, value=n.value, index_n=n.index_n, witnesses=n.witnesses, strict=False)
else:
t.add_output(n.value, n.address, lock_script=n.script, spent=n.spent, output_n=n.index_n,
spending_txid=None if not n.ref_txid else n.ref_txid.hex(),
Expand Down

0 comments on commit d41f0a5

Please sign in to comment.