mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-06 03:02:37 +02:00
Calculate and store the number of bytes required to spend an input
This commit is contained in:
@@ -258,3 +258,8 @@ int64_t GetVirtualTransactionSize(const CTransaction& tx, int64_t nSigOpCost)
|
||||
{
|
||||
return GetVirtualTransactionSize(GetTransactionWeight(tx), nSigOpCost);
|
||||
}
|
||||
|
||||
int64_t GetVirtualTransactionInputSize(const CTxIn& txin, int64_t nSigOpCost)
|
||||
{
|
||||
return GetVirtualTransactionSize(GetTransationInputWeight(txin), nSigOpCost);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user