Changeset View
Changeset View
Standalone View
Standalone View
src/core_write.cpp
// 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 "core_io.h" | #include <core_io.h> | ||||
#include "dstencode.h" | #include <dstencode.h> | ||||
#include "primitives/transaction.h" | #include <primitives/transaction.h> | ||||
#include "script/script.h" | #include <script/script.h> | ||||
#include "script/sigencoding.h" | #include <script/sigencoding.h> | ||||
#include "script/standard.h" | #include <script/standard.h> | ||||
#include "serialize.h" | #include <serialize.h> | ||||
#include "streams.h" | #include <streams.h> | ||||
#include "util.h" | #include <util.h> | ||||
#include "utilmoneystr.h" | #include <utilmoneystr.h> | ||||
#include "utilstrencodings.h" | #include <utilstrencodings.h> | ||||
#include <univalue.h> | #include <univalue.h> | ||||
std::string FormatScript(const CScript &script) { | std::string FormatScript(const CScript &script) { | ||||
std::string ret; | std::string ret; | ||||
CScript::const_iterator it = script.begin(); | CScript::const_iterator it = script.begin(); | ||||
opcodetype op; | opcodetype op; | ||||
while (it != script.end()) { | while (it != script.end()) { | ||||
▲ Show 20 Lines • Show All 222 Lines • Show Last 20 Lines |