/
ActionExecutionState.cs
35 lines (29 loc) · 1.07 KB
/
ActionExecutionState.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using System.Security.Cryptography;
namespace Libplanet.Net
{
/// <summary>
/// Indicates a progress of executing block actions.
/// </summary>
[Equals]
public class ActionExecutionState : PreloadState
{
/// <summary>
/// Total number of blocks to execute in the current batch.
/// </summary>
public int TotalBlockCount { get; internal set; }
/// <summary>
/// The number of currently executed blocks.
/// </summary>
public int ExecutedBlockCount { get; internal set; }
/// <summary>
/// The hash digest of the block just executed.
/// </summary>
public HashDigest<SHA256> ExecutedBlockHash { get; internal set; }
/// <inheritdoc />
public override int CurrentPhase => 5;
public static bool operator ==(ActionExecutionState left, ActionExecutionState right) =>
Operator.Weave(left, right);
public static bool operator !=(ActionExecutionState left, ActionExecutionState right) =>
Operator.Weave(left, right);
}
}