MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / GetVirtualTransactionSize

Function GetVirtualTransactionSize

src/policy/policy.cpp:249–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247unsigned int nBytesPerSigOp = DEFAULT_BYTES_PER_SIGOP;
248
249int64_t GetVirtualTransactionSize(int64_t nWeight, int64_t nSigOpCost)
250{
251 return (std::max(nWeight, nSigOpCost * nBytesPerSigOp) + WITNESS_SCALE_FACTOR - 1) / WITNESS_SCALE_FACTOR;
252}
253
254int64_t GetVirtualTransactionSize(const CTransaction& tx, int64_t nSigOpCost)
255{

Callers 9

GetTxSizeMethod · 0.85
CreateTransactionFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
toHTMLMethod · 0.85
getVirtualSizeMethod · 0.85
MempoolEvictionFunction · 0.85

Calls 2

maxFunction · 0.85
GetTransactionWeightFunction · 0.85

Tested by 2

BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68