MCPcopy Create free account
hub / github.com/ElementsProject/elements / __init__

Method __init__

test/functional/test_framework/messages.py:615–622  ·  view source on GitHub ↗
(self, nValue=CTxOutValue(), scriptPubKey=b'', nAsset=CTxOutAsset(BITCOIN_ASSET_OUT), nNonce=CTxOutNonce())

Source from the content-addressed store, hash-verified

613 __slots__ = ("nValue", "scriptPubKey", "nAsset", "nNonce")
614
615 def __init__(self, nValue=CTxOutValue(), scriptPubKey=b'', nAsset=CTxOutAsset(BITCOIN_ASSET_OUT), nNonce=CTxOutNonce()):
616 self.nAsset = nAsset
617 if type(nValue) is int:
618 self.nValue = CTxOutValue(nValue)
619 else:
620 self.nValue = nValue
621 self.nNonce = nNonce
622 self.scriptPubKey = scriptPubKey
623
624 def setNull(self):
625 self.nAsset.setNull()

Callers

nothing calls this directly

Calls 4

CTxOutValueClass · 0.85
CTxOutAssetClass · 0.85
CTxOutNonceClass · 0.85
typeClass · 0.50

Tested by

no test coverage detected