We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5109241 commit 0b7e621Copy full SHA for 0b7e621
bitcoin/core/__init__.py
@@ -160,11 +160,11 @@ def __str__(self):
160
def from_outpoint(cls, outpoint):
161
"""Create an immutable copy of an existing OutPoint
162
163
- If output is already immutable (outpoint.__class__ is COutPoint) it is
+ If outpoint is already immutable (outpoint.__class__ is COutPoint) it is
164
returned directly.
165
"""
166
- if output.__class__ is COutPoint:
167
- return output
+ if outpoint.__class__ is COutPoint:
+ return outpoint
168
169
else:
170
return cls(outpoint.hash, outpoint.n)
0 commit comments