Skip to content

Commit

Permalink
Update CoreMetrics.cs (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
shargon authored and vncoelho committed May 19, 2019
1 parent 04fedf5 commit e1c0276
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CoreMetrics/CoreMetrics.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ private JObject GetBlocksTime(uint nBlocks, uint lastHeight)
uint heightToBegin = lastHeight > 0 ? lastHeight - nBlocks : (Blockchain.Singleton.Height - 1) - nBlocks;
for (uint i = heightToBegin; i <= heightToBegin + nBlocks; i++)
{
JObject json = new JObject();
Header header = Blockchain.Singleton.Store.GetHeader(i);
if (header == null) break;

JObject json = new JObject();
json["timestamp"] = header.Timestamp;
json["height"] = i;
array.Add(json);
Expand Down

0 comments on commit e1c0276

Please sign in to comment.