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