X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=Novacoin%2FCTxIn.cs;h=937b367bef9db43a76b05de459a5df8ef1ce1683;hb=892af99303ad6d6ece3e57bebd36b521102df838;hp=a33606a6b95efbacde8242db1bf59434070dd76e;hpb=0c95b16ee0998f78aa504cb5a03a850cb7bb8241;p=NovacoinLibrary.git
diff --git a/Novacoin/CTxIn.cs b/Novacoin/CTxIn.cs
index a33606a..937b367 100644
--- a/Novacoin/CTxIn.cs
+++ b/Novacoin/CTxIn.cs
@@ -87,6 +87,20 @@ namespace Novacoin
}
///
+ /// Serialized size
+ ///
+ public int Size
+ {
+ get {
+ int nSize = 40; // COutPoint, nSequence
+ nSize += VarInt.GetEncodedSize(scriptSig.Size);
+ nSize += scriptSig.Size;
+
+ return nSize;
+ }
+ }
+
+ ///
/// Get raw bytes representation of our input.
///
/// Byte sequence.