MCPcopy Index your code
hub / github.com/petertodd/python-bitcoinlib / from_tx

Method from_tx

bitcoin/core/__init__.py:491–496  ·  view source on GitHub ↗

Create a fully mutable copy of a pre-existing transaction

(cls, tx)

Source from the content-addressed store, hash-verified

489
490 @classmethod
491 def from_tx(cls, tx):
492 """Create a fully mutable copy of a pre-existing transaction"""
493 vin = [CMutableTxIn.from_txin(txin) for txin in tx.vin]
494 vout = [CMutableTxOut.from_txout(txout) for txout in tx.vout]
495
496 return cls(vin, vout, tx.nLockTime, tx.nVersion, tx.wit)
497
498
499class CBlockHeader(ImmutableSerializable):

Callers

nothing calls this directly

Calls 2

from_txinMethod · 0.45
from_txoutMethod · 0.45

Tested by

no test coverage detected