Changeset View
Changeset View
Standalone View
Standalone View
src/primitives/transaction.cpp
Show First 20 Lines • Show All 108 Lines • ▼ Show 20 Lines | for (const auto &nVin : vin) { | ||||
41U + std::min(110U, (unsigned int)nVin.scriptSig.size()); | 41U + std::min(110U, (unsigned int)nVin.scriptSig.size()); | ||||
if (nTxSize > offset) { | if (nTxSize > offset) { | ||||
nTxSize -= offset; | nTxSize -= offset; | ||||
} | } | ||||
} | } | ||||
return nTxSize; | return nTxSize; | ||||
} | } | ||||
size_t CTransaction::GetBillableSize() const { | |||||
return ::GetSerializeSize(*this, SER_NETWORK, PROTOCOL_VERSION); | |||||
} | |||||
unsigned int CTransaction::GetTotalSize() const { | unsigned int CTransaction::GetTotalSize() const { | ||||
return ::GetSerializeSize(*this, SER_NETWORK, PROTOCOL_VERSION); | return ::GetSerializeSize(*this, SER_NETWORK, PROTOCOL_VERSION); | ||||
} | } | ||||
std::string CTransaction::ToString() const { | std::string CTransaction::ToString() const { | ||||
std::string str; | std::string str; | ||||
str += strprintf("CTransaction(txid=%s, ver=%d, vin.size=%u, vout.size=%u, " | str += strprintf("CTransaction(txid=%s, ver=%d, vin.size=%u, vout.size=%u, " | ||||
"nLockTime=%u)\n", | "nLockTime=%u)\n", | ||||
Show All 10 Lines |