fAcceptDatacarrier
and nMaxDatacarrierBytes
fields specifically. Then I figured I’d add docs for the rest of the functions.
fAcceptDatacarrier
and nMaxDatacarrierBytes
fields specifically. Then I figured I’d add docs for the rest of the functions.
80@@ -70,15 +81,49 @@ class CNoDestination {
81 */
82 typedef boost::variant<CNoDestination, CKeyID, CScriptID> CTxDestination;
83
84+/** Get the name of a txnouttype as a C string, or nullptr if unknown. */
85 const char* GetTxnOutputType(txnouttype t);
86
87+/**
88+ * Parse a scriptPubKey and identify script type for standard scripts. Assigns
89+ * the result to the typeRet reference parameter and returns true if successful.
38+ * A data carrying output is an unspendable output containing data. The script
39+ * type is designated as TX_NULL_DATA.
40+ */
41 extern bool fAcceptDatacarrier;
42+
43+/** Maximum size of TX_NULL_DATA scripts that this node considers standard. */
IsStandardTx
further restricts the number of OP_RETURN outputs per tx to 1. If this comment were to say per transaction
it sort of implies that the data can be split across multiple OP_RETURN outputs as long as the limit is not exceeded.
89+ * the result to the typeRet reference parameter and returns true if successful.
90+ */
91 bool Solver(const CScript& scriptPubKey, txnouttype& typeRet, std::vector<std::vector<unsigned char> >& vSolutionsRet);
92+
93+/**
94+ * Parse a standard scriptPubKey for the destination address. Assigns result to
CTxDestination
for witness programs will be added? It’s also interesting that this function does not return a CNoDestination
for TX_NULL_DATA
scripts.
jimpo
TheBlueMatt
jnewbery
laanwj
Labels
Docs