2
0
mirror of synced 2025-01-26 00:08:57 +00:00

20 lines
439 B
C#
Raw Normal View History

2024-03-21 16:26:48 +01:00
namespace NethereumWorkflow.BlockUtils
2023-12-20 10:33:44 +01:00
{
2024-03-21 12:18:04 +01:00
public class BlockTimeEntry
2023-12-20 10:33:44 +01:00
{
2024-03-21 12:18:04 +01:00
public BlockTimeEntry(ulong blockNumber, DateTime utc)
2023-12-20 10:33:44 +01:00
{
2024-03-21 12:18:04 +01:00
BlockNumber = blockNumber;
Utc = utc;
}
2023-12-20 10:33:44 +01:00
2024-03-21 12:18:04 +01:00
public ulong BlockNumber { get; }
public DateTime Utc { get; }
2023-12-20 10:33:44 +01:00
2024-03-21 12:18:04 +01:00
public override string ToString()
{
return $"[{BlockNumber}] @ {Utc.ToString("o")}";
2023-12-20 10:33:44 +01:00
}
}
}