mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
Rename "block cost" to "block weight"
This commit is contained in:
parent
5e3557b8e3
commit
2c06bae39e
18 changed files with 69 additions and 69 deletions
|
|
@ -28,7 +28,7 @@ CTxMemPoolEntry::CTxMemPoolEntry(const CTransaction& _tx, const CAmount& _nFee,
|
|||
hadNoDependencies(poolHasNoInputsOf), inChainInputValue(_inChainInputValue),
|
||||
spendsCoinbase(_spendsCoinbase), sigOpCost(_sigOpsCost), lockPoints(lp)
|
||||
{
|
||||
nTxCost = GetTransactionCost(_tx);
|
||||
nTxWeight = GetTransactionWeight(_tx);
|
||||
nModSize = _tx.CalculateModifiedSize(GetTxSize());
|
||||
nUsageSize = RecursiveDynamicUsage(*tx) + memusage::DynamicUsage(tx);
|
||||
|
||||
|
|
@ -75,7 +75,7 @@ void CTxMemPoolEntry::UpdateLockPoints(const LockPoints& lp)
|
|||
|
||||
size_t CTxMemPoolEntry::GetTxSize() const
|
||||
{
|
||||
return GetVirtualTransactionSize(nTxCost);
|
||||
return GetVirtualTransactionSize(nTxWeight);
|
||||
}
|
||||
|
||||
// Update the given tx for any in-mempool descendants.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue