diff --git a/CoreMetrics/CoreMetrics.cs b/CoreMetrics/CoreMetrics.cs index b9df0022e..4b2e62303 100644 --- a/CoreMetrics/CoreMetrics.cs +++ b/CoreMetrics/CoreMetrics.cs @@ -33,7 +33,7 @@ public void PostProcess(HttpContext context, string method, JArray _params, JObj private JObject GetBlocksTime(uint nBlocks, uint lastHeight) { // It is currently limited to query blocks generated in the last 24hours (86400 seconds) - uint maxNBlocksPerDay = 86400 / Blockchain.SecondsPerBlock; + uint maxNBlocksPerDay = 86400 / Blockchain.MillisecondsPerBlock * 1000; if (lastHeight != 0) { if (lastHeight >= Blockchain.Singleton.Height) diff --git a/CoreMetrics/CoreMetrics.csproj b/CoreMetrics/CoreMetrics.csproj index 91bb46e49..088f619a5 100644 --- a/CoreMetrics/CoreMetrics.csproj +++ b/CoreMetrics/CoreMetrics.csproj @@ -7,7 +7,7 @@ </PropertyGroup> <ItemGroup> - <PackageReference Include="Neo" Version="3.0.0-CI00044" /> + <PackageReference Include="Neo" Version="3.0.0-CI00122" /> </ItemGroup> </Project> diff --git a/RpcNep5Tracker/Nep5TransferKey.cs b/RpcNep5Tracker/Nep5TransferKey.cs index a1892d54a..7ffeacef2 100644 --- a/RpcNep5Tracker/Nep5TransferKey.cs +++ b/RpcNep5Tracker/Nep5TransferKey.cs @@ -7,7 +7,7 @@ namespace Neo.Plugins public class Nep5TransferKey : IComparable<Nep5TransferKey>, IEquatable<Nep5TransferKey>, ISerializable { public readonly UInt160 UserScriptHash; - public uint Timestamp { get; private set; } + public ulong Timestamp { get; private set; } public readonly UInt160 AssetScriptHash; public ushort BlockXferNotificationIndex { get; private set; } @@ -17,7 +17,7 @@ public class Nep5TransferKey : IComparable<Nep5TransferKey>, IEquatable<Nep5Tran { } - public Nep5TransferKey(UInt160 userScriptHash, uint timestamp, UInt160 assetScriptHash, ushort xferIndex) + public Nep5TransferKey(UInt160 userScriptHash, ulong timestamp, UInt160 assetScriptHash, ushort xferIndex) { if (userScriptHash is null || assetScriptHash is null) throw new ArgumentNullException(); @@ -82,7 +82,7 @@ public void Deserialize(BinaryReader reader) byte[] timestampBytes = new byte[sizeof(uint)]; reader.Read(timestampBytes, 0, sizeof(uint)); if (BitConverter.IsLittleEndian) Array.Reverse(timestampBytes); - Timestamp = BitConverter.ToUInt32(timestampBytes, 0); + Timestamp = BitConverter.ToUInt64(timestampBytes, 0); ((ISerializable)AssetScriptHash).Deserialize(reader); BlockXferNotificationIndex = reader.ReadUInt16(); } diff --git a/RpcNep5Tracker/RpcNep5Tracker.csproj b/RpcNep5Tracker/RpcNep5Tracker.csproj index 39004a01b..90b5e0803 100644 --- a/RpcNep5Tracker/RpcNep5Tracker.csproj +++ b/RpcNep5Tracker/RpcNep5Tracker.csproj @@ -12,6 +12,6 @@ </None> </ItemGroup> <ItemGroup> - <PackageReference Include="Neo" Version="3.0.0-CI00044" /> + <PackageReference Include="Neo" Version="3.0.0-CI00122" /> </ItemGroup> </Project>