Changeset View
Changeset View
Standalone View
Standalone View
src/policy/policy.cpp
Show First 20 Lines • Show All 171 Lines • ▼ Show 20 Lines | for (const CTxIn &in : tx.vin) { | ||||
} | } | ||||
} | } | ||||
return true; | return true; | ||||
} | } | ||||
CFeeRate dustRelayFee = CFeeRate(DUST_RELAY_TX_FEE); | CFeeRate dustRelayFee = CFeeRate(DUST_RELAY_TX_FEE); | ||||
uint32_t nBytesPerSigOp = DEFAULT_BYTES_PER_SIGOP; | uint32_t nBytesPerSigOp = DEFAULT_BYTES_PER_SIGOP; | ||||
int64_t GetVirtualTransactionSize(int64_t nSize, int64_t nSigOpCost, | |||||
unsigned int bytes_per_sigop) { | |||||
return nSize; | |||||
} | |||||
int64_t GetVirtualTransactionSize(const CTransaction &tx, int64_t nSigOpCost, | |||||
unsigned int bytes_per_sigop) { | |||||
return GetVirtualTransactionSize(::GetSerializeSize(tx, PROTOCOL_VERSION), | |||||
nSigOpCost, bytes_per_sigop); | |||||
} |