aboutsummaryrefslogtreecommitdiff
path: root/src/policy/policy.cpp
diff options
context:
space:
mode:
authorAndrew Chow <[email protected]>2018-03-05 16:37:24 -0500
committerAndrew Chow <[email protected]>2018-03-09 21:15:36 -0500
commit12ec29d3bb0d46c61712210fe9bb96a0d543204a (patch)
tree5570d616050510641d8f55d894da60048841e6cf /src/policy/policy.cpp
parentMerge #9598: Improve readability by removing redundant casts to same type (on... (diff)
downloaddiscoin-12ec29d3bb0d46c61712210fe9bb96a0d543204a.tar.xz
discoin-12ec29d3bb0d46c61712210fe9bb96a0d543204a.zip
Calculate and store the number of bytes required to spend an input
Diffstat (limited to 'src/policy/policy.cpp')
-rw-r--r--src/policy/policy.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/policy/policy.cpp b/src/policy/policy.cpp
index bff58932b..41f967c98 100644
--- a/src/policy/policy.cpp
+++ b/src/policy/policy.cpp
@@ -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);
+}