Create a fully mutable copy of a pre-existing transaction
(cls, tx)
| 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 | |
| 499 | class CBlockHeader(ImmutableSerializable): |
nothing calls this directly
no test coverage detected