6 #ifndef FABCOIN_SCRIPT_STANDARD_H 7 #define FABCOIN_SCRIPT_STANDARD_H 12 #include <boost/variant.hpp> 16 static const bool DEFAULT_ACCEPT_DATACARRIER =
true;
20 static const uint64_t STANDARD_MINIMUM_GAS_LIMIT = 10000;
23 static const uint64_t STANDARD_MINIMUM_GAS_PRICE = 1;
36 static const unsigned int MAX_OP_RETURN_RELAY = 83;
83 bool Solver(
const CScript& scriptPubKey,
txnouttype& typeRet, std::vector<std::vector<unsigned char> >& vSolutionsRet,
bool contractConsensus=
false);
92 #endif // FABCOIN_SCRIPT_STANDARD_H
boost::variant< CNoDestination, CKeyID, CScriptID > CTxDestination
A txout script template with a specific destination.
CScript GetScriptForRawPubKey(const CPubKey &pubkey)
bool Solver(const CScript &scriptPubKey, txnouttype &typeRet, std::vector< std::vector< unsigned char > > &vSolutionsRet, bool contractConsensus=false)
Return public keys or hashes from scriptPubKey, for 'standard' transaction types. ...
friend bool operator==(const CNoDestination &a, const CNoDestination &b)
friend bool operator<(const CNoDestination &a, const CNoDestination &b)
CScript GetScriptForWitness(const CScript &redeemscript)
An encapsulated public key.
CScript GetScriptForMultisig(int nRequired, const std::vector< CPubKey > &keys)
CScriptID(const uint160 &in)
CScript GetScriptForDestination(const CTxDestination &dest)
Serialized script, used inside transaction inputs and outputs.
A reference to a CKey: the Hash160 of its serialized public key.
A reference to a CScript: the Hash160 of its serialization (see script.h)
const char * GetTxnOutputType(txnouttype t)
unsigned nMaxDatacarrierBytes
bool ExtractDestinations(const CScript &scriptPubKey, txnouttype &typeRet, std::vector< CTxDestination > &addressRet, int &nRequiredRet)
bool ExtractDestination(const CScript &scriptPubKey, CTxDestination &addressRet, txnouttype *typeRet=nullptr)