public TransactionOutput(BinaryReader br) { mValue = br.ReadUInt64(); ulong scriptLen = Program.ReadVarInt(br); if (scriptLen <= int.MaxValue) { mScript = br.ReadBytes((int)scriptLen); } else { Console.WriteLine("Really big output script, need to handle this!"); } }