From f5d880c96c72c298e0fb412bcb1abba6a4ddac02 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Wed, 4 Feb 2015 15:42:26 +0100 Subject: [PATCH] enable OP_RETURN output --- protob/types.proto | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/protob/types.proto b/protob/types.proto index 96928b8e13..9561901d95 100644 --- a/protob/types.proto +++ b/protob/types.proto @@ -48,6 +48,7 @@ enum OutputScriptType { PAYTOADDRESS = 0; PAYTOSCRIPTHASH = 1; PAYTOMULTISIG = 2; + PAYTOOPRETURN = 3; } /** @@ -166,7 +167,8 @@ message TxOutputType { repeated uint32 address_n = 2; // BIP-32 path to derive the key from master node; has higher priority than "address" required uint64 amount = 3; // amount to spend in satoshis required OutputScriptType script_type = 4; // output script type - optional MultisigRedeemScriptType multisig = 5; // Defines multisig address; script_type must be PAYTOMULTISIG + optional MultisigRedeemScriptType multisig = 5; // defines multisig address; script_type must be PAYTOMULTISIG + optional bytes op_return_data = 6; // defines op_return data; script_type must be PAYTOOPRETURN, amount must be 0 } /**