forked from planetarium/libplanet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
closes planetarium#204
- Loading branch information
Showing
4 changed files
with
134 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using System.Security.Cryptography; | ||
|
||
namespace Libplanet.Net | ||
{ | ||
/// <summary> | ||
/// A container that indicates the progress of a block download. | ||
/// </summary> | ||
[Uno.GeneratedEquality] | ||
public partial class BlockDownloadState | ||
{ | ||
/// <summary> | ||
/// Total number of blocks to receive in the current batch. | ||
/// </summary> | ||
[Uno.EqualityHash] | ||
public int TotalBlockCount { get; internal set; } | ||
|
||
/// <summary> | ||
/// The number of currently received blocks. | ||
/// </summary> | ||
[Uno.EqualityHash] | ||
public int ReceivedBlockCount { get; internal set; } | ||
|
||
/// <summary> | ||
/// The hash digest of the block just received. | ||
/// </summary> | ||
[Uno.EqualityHash] | ||
public HashDigest<SHA256> ReceivedBlockHash { get; internal set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters