Block and transaction verifications
[NovacoinLibrary.git] / Novacoin / Interop.cs
index 6771afd..f4c1e2e 100644 (file)
@@ -56,7 +56,7 @@ namespace Novacoin
             return bytes;
         }
 
-        public static string ToHex(IEnumerable<byte> bytes)
+        public static string ToHex(byte[] bytes)
         {
             var sb = new StringBuilder();
             foreach (var b in bytes)
@@ -66,9 +66,9 @@ namespace Novacoin
             return sb.ToString();
         }
 
-        public static int GetTime()
+        public static uint GetTime()
         {
-            return (int)(DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds;
+            return (uint)(DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds;
         }
     }
 }