Create an immutable copy of an existing TxIn If txin is already immutable (txin.__class__ is CTxIn) it is returned directly.
(cls, txin)
| 178 | |
| 179 | @classmethod |
| 180 | def from_txin(cls, txin): |
| 181 | """Create an immutable copy of an existing TxIn |
| 182 | |
| 183 | If txin is already immutable (txin.__class__ is CTxIn) it is returned |
| 184 | directly. |
| 185 | """ |
| 186 | if txin.__class__ is CTxIn: |
| 187 | return txin |
| 188 | |
| 189 | else: |
| 190 | return cls(COutPoint.from_outpoint(txin.prevout), txin.scriptSig, txin.nSequence) |
| 191 | |
| 192 | @__make_mutable |
| 193 | class CMutableTxIn(CTxIn): |
no test coverage detected