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

Method from_outpoint

bitcoin/core/__init__.py:123–133  ·  view source on GitHub ↗

Create an immutable copy of an existing OutPoint If outpoint is already immutable (outpoint.__class__ is COutPoint) it is returned directly.

(cls, outpoint)

Source from the content-addressed store, hash-verified

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
136class CMutableOutPoint(COutPoint):

Callers 2

from_txinMethod · 0.45
from_txinMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected