Changeset View
Changeset View
Standalone View
Standalone View
src/script/standard.cpp
// Copyright (c) 2009-2010 Satoshi Nakamoto | // Copyright (c) 2009-2010 Satoshi Nakamoto | ||||
// Copyright (c) 2009-2016 The Bitcoin Core developers | // Copyright (c) 2009-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include "script/standard.h" | #include "script/standard.h" | ||||
#include "pubkey.h" | #include "pubkey.h" | ||||
#include "script/script.h" | #include "script/script.h" | ||||
#include "util.h" | #include "util.h" | ||||
#include "utilstrencodings.h" | #include "utilstrencodings.h" | ||||
typedef std::vector<uint8_t> valtype; | typedef std::vector<uint8_t> valtype; | ||||
bool fAcceptDatacarrier = DEFAULT_ACCEPT_DATACARRIER; | bool fAcceptDatacarrier = DEFAULT_ACCEPT_DATACARRIER; | ||||
unsigned nMaxDatacarrierBytes = MAX_OP_RETURN_RELAY; | |||||
CScriptID::CScriptID(const CScript &in) | CScriptID::CScriptID(const CScript &in) | ||||
: uint160(Hash160(in.begin(), in.end())) {} | : uint160(Hash160(in.begin(), in.end())) {} | ||||
const char *GetTxnOutputType(txnouttype t) { | const char *GetTxnOutputType(txnouttype t) { | ||||
switch (t) { | switch (t) { | ||||
case TX_NONSTANDARD: | case TX_NONSTANDARD: | ||||
return "nonstandard"; | return "nonstandard"; | ||||
▲ Show 20 Lines • Show All 239 Lines • Show Last 20 Lines |