Skip to content

Commit c03a234

Browse files
Make ChainInfo.Difficulty an ulong (#1285)
1 parent 9cf72be commit c03a234

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

NBitcoin/RPC/RestClient.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ public async Task<ChainInfo> GetChainInfoAsync()
173173
BestBlockHash = uint256.Parse((string)o["bestblockhash"]),
174174
Blocks = (int)o["blocks"],
175175
ChainWork = uint256.Parse((string)o["chainwork"]),
176-
Difficulty = (int)o["difficulty"],
176+
Difficulty = (ulong)o["difficulty"],
177177
Headers = (int)o["headers"],
178178
VerificationProgress = (decimal)o["verificationprogress"],
179179
IsPruned = (bool)o["pruned"]
@@ -301,7 +301,7 @@ public uint256 BestBlockHash
301301
get;
302302
internal set;
303303
}
304-
public int Difficulty
304+
public ulong Difficulty
305305
{
306306
get;
307307
internal set;

0 commit comments

Comments
 (0)