Skip to content

Commit

Permalink
Difficulty added to output
Browse files Browse the repository at this point in the history
  • Loading branch information
greymistcube committed Jun 25, 2021
1 parent 45d3572 commit 34d5e70
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Libplanet.Extensions.Cocona/Commands/StatsCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ internal void Summary(

if (header)
{
Console.WriteLine("index,hash,miner,txCount,timestamp,perceivedTime");
Console.WriteLine("index,hash,difficulty,miner,txCount,timestamp,perceivedTime");
}

foreach (var hash in hashes)
Expand All @@ -85,6 +85,7 @@ internal void Summary(
Console.WriteLine(
$"{block.Index}," +
$"{block.Hash}," +
$"{block.Difficulty}," +
$"{block.Miner}," +
$"{block.Transactions.Count}," +
$"{block.Timestamp.ToUnixTimeMilliseconds()}," +
Expand Down

0 comments on commit 34d5e70

Please sign in to comment.