Create an immutable copy of an existing OutPoint If outpoint is already immutable (outpoint.__class__ is COutPoint) it is returned directly.
(cls, outpoint)
| 121 | |
| 122 | @classmethod |
| 123 | def from_outpoint(cls, outpoint): |
| 124 | """Create an immutable copy of an existing OutPoint |
| 125 | |
| 126 | If outpoint is already immutable (outpoint.__class__ is COutPoint) it is |
| 127 | returned directly. |
| 128 | """ |
| 129 | if outpoint.__class__ is COutPoint: |
| 130 | return outpoint |
| 131 | |
| 132 | else: |
| 133 | return cls(outpoint.hash, outpoint.n) |
| 134 | |
| 135 | @__make_mutable |
| 136 | class CMutableOutPoint(COutPoint): |