Changeset View
Changeset View
Standalone View
Standalone View
src/policy/policy.h
Show First 20 Lines • Show All 121 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
bool AreInputsStandard(const CTransaction &tx, | bool AreInputsStandard(const CTransaction &tx, | ||||
const CCoinsViewCache &mapInputs); | const CCoinsViewCache &mapInputs); | ||||
extern CFeeRate incrementalRelayFee; | extern CFeeRate incrementalRelayFee; | ||||
extern CFeeRate dustRelayFee; | extern CFeeRate dustRelayFee; | ||||
extern uint32_t nBytesPerSigOp; | extern uint32_t nBytesPerSigOp; | ||||
/** Compute the virtual transaction size (weight reinterpreted as bytes). */ | |||||
int64_t GetVirtualTransactionSize(int64_t nSize, int64_t nSigOpCost, | |||||
unsigned int bytes_per_sigop); | |||||
int64_t GetVirtualTransactionSize(const CTransaction &tx, int64_t nSigOpCost, | |||||
unsigned int bytes_per_sigop); | |||||
static inline int64_t GetVirtualTransactionSize(const CTransaction &tx) { | |||||
return GetVirtualTransactionSize(tx, 0, 0); | |||||
} | |||||
#endif // BITCOIN_POLICY_POLICY_H | #endif // BITCOIN_POLICY_POLICY_H |