Changeset View
Changeset View
Standalone View
Standalone View
src/psbt.cpp
// Copyright (c) 2009-2018 The Bitcoin Core developers | // Copyright (c) 2009-2018 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 <psbt.h> | #include <psbt.h> | ||||
#include <util/strencodings.h> | #include <util/strencodings.h> | ||||
PartiallySignedTransaction::PartiallySignedTransaction(const CTransaction &txIn) | PartiallySignedTransaction::PartiallySignedTransaction( | ||||
const CMutableTransaction &txIn) | |||||
: tx(txIn) { | : tx(txIn) { | ||||
inputs.resize(txIn.vin.size()); | inputs.resize(txIn.vin.size()); | ||||
outputs.resize(txIn.vout.size()); | outputs.resize(txIn.vout.size()); | ||||
} | } | ||||
bool PartiallySignedTransaction::IsNull() const { | bool PartiallySignedTransaction::IsNull() const { | ||||
return !tx && inputs.empty() && outputs.empty() && unknown.empty(); | return !tx && inputs.empty() && outputs.empty() && unknown.empty(); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 257 Lines • Show Last 20 Lines |