|
|
@ -23,7 +23,6 @@ class TxOutputType(p.MessageType):
|
|
|
|
script_type: EnumTypeOutputScriptType = None,
|
|
|
|
script_type: EnumTypeOutputScriptType = None,
|
|
|
|
multisig: MultisigRedeemScriptType = None,
|
|
|
|
multisig: MultisigRedeemScriptType = None,
|
|
|
|
op_return_data: bytes = None,
|
|
|
|
op_return_data: bytes = None,
|
|
|
|
decred_script_version: int = None,
|
|
|
|
|
|
|
|
) -> None:
|
|
|
|
) -> None:
|
|
|
|
self.address = address
|
|
|
|
self.address = address
|
|
|
|
self.address_n = address_n if address_n is not None else []
|
|
|
|
self.address_n = address_n if address_n is not None else []
|
|
|
@ -31,7 +30,6 @@ class TxOutputType(p.MessageType):
|
|
|
|
self.script_type = script_type
|
|
|
|
self.script_type = script_type
|
|
|
|
self.multisig = multisig
|
|
|
|
self.multisig = multisig
|
|
|
|
self.op_return_data = op_return_data
|
|
|
|
self.op_return_data = op_return_data
|
|
|
|
self.decred_script_version = decred_script_version
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
@classmethod
|
|
|
|
def get_fields(cls) -> Dict:
|
|
|
|
def get_fields(cls) -> Dict:
|
|
|
@ -42,5 +40,4 @@ class TxOutputType(p.MessageType):
|
|
|
|
4: ('script_type', p.EnumType("OutputScriptType", (0, 1, 2, 3, 4, 5)), 0), # required
|
|
|
|
4: ('script_type', p.EnumType("OutputScriptType", (0, 1, 2, 3, 4, 5)), 0), # required
|
|
|
|
5: ('multisig', MultisigRedeemScriptType, 0),
|
|
|
|
5: ('multisig', MultisigRedeemScriptType, 0),
|
|
|
|
6: ('op_return_data', p.BytesType, 0),
|
|
|
|
6: ('op_return_data', p.BytesType, 0),
|
|
|
|
7: ('decred_script_version', p.UVarintType, 0),
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|