Calculate and store the number of bytes required to spend an input

This commit is contained in:
Andrew Chow
2018-03-05 16:37:24 -05:00
parent a34ac6ae07
commit 12ec29d3bb
8 changed files with 127 additions and 68 deletions

View File

@@ -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);
}