namespace Novacoin
{
- public class InteropException : Exception
- {
- public InteropException()
- {
- }
-
- public InteropException(string message)
- : base(message)
- {
- }
-
- public InteropException(string message, Exception inner)
- : base(message, inner)
- {
- }
- }
-
/// <summary>
/// Miscellaneous functions
/// </summary>
return bytes;
}
- public static string ToHex(IEnumerable<byte> bytes)
+ public static string ToHex(byte[] bytes)
{
var sb = new StringBuilder();
foreach (var b in bytes)
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;
}
}
}