MCPcopy Create free account
hub / github.com/ElementsProject/elements / GetDiscountTxSize

Method GetDiscountTxSize

src/txmempool.cpp:121–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121size_t CTxMemPoolEntry::GetDiscountTxSize() const
122{
123 // discountvsize only differs from vsize if we accept discounted CTs
124 if (Params().GetAcceptDiscountCT()) {
125 return GetDiscountVirtualTransactionSize(*tx, sigOpCost, ::nBytesPerSigOp);
126 } else {
127 return GetVirtualTransactionSize(nTxWeight, sigOpCost);
128 }
129}
130
131void CTxMemPool::UpdateForDescendants(txiter updateIt, cacheMap& cachedDescendants,
132 const std::set<uint256>& setExclude, std::set<uint256>& descendants_to_remove,

Callers 5

GetModFeeAndSizeMethod · 0.45
UpdateForDescendantsMethod · 0.45
GetInfoFunction · 0.45

Calls 4

GetAcceptDiscountCTMethod · 0.80
ParamsClass · 0.70

Tested by

no test coverage detected