 |
Bitcoin Core
22.99.0
P2P Digital Currency
|
Go to the documentation of this file.
24 for (
const auto& txout : tx.
vout)
30 nValueOut += txout.nValue;
40 std::set<COutPoint> vInOutPoints;
41 for (
const auto& txin : tx.
vin) {
42 if (!vInOutPoints.insert(txin.prevout).second)
48 if (tx.
vin[0].scriptSig.size() < 2 || tx.
vin[0].scriptSig.size() > 100)
53 for (
const auto& txin : tx.
vin)
54 if (txin.prevout.IsNull())
size_t GetSerializeSize(const T &t, int nVersion=0)
const std::vector< CTxIn > vin
bool MoneyRange(const CAmount &nValue)
bool CheckTransaction(const CTransaction &tx, TxValidationState &state)
The basic transaction that is broadcasted on the network and contained in blocks.
const std::vector< CTxOut > vout
int64_t CAmount
Amount in satoshis (Can be negative)
static const int SERIALIZE_TRANSACTION_NO_WITNESS
A flag that is ORed into the protocol version to designate that a transaction should be (un)serialize...
bool Invalid(Result result, const std::string &reject_reason="", const std::string &debug_message="")
@ TX_CONSENSUS
invalid by consensus rules
static const unsigned int MAX_BLOCK_WEIGHT
The maximum allowed weight for a block, see BIP 141 (network rule)
static constexpr CAmount MAX_MONEY
No amount larger than this (in satoshi) is valid.
static const int WITNESS_SCALE_FACTOR
static const int PROTOCOL_VERSION
network protocol versioning