From 2871103906684e41602a5eca5f6423d9afd76d42 Mon Sep 17 00:00:00 2001 From: Lucas Cullen Date: Mon, 17 Jun 2024 14:17:22 +1000 Subject: [PATCH 1/2] feat: Add PruneHeight property to RPCClient class --- NBitcoin/RPC/RPCClient.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/NBitcoin/RPC/RPCClient.cs b/NBitcoin/RPC/RPCClient.cs index 8e576363e..043dc7aee 100644 --- a/NBitcoin/RPC/RPCClient.cs +++ b/NBitcoin/RPC/RPCClient.cs @@ -2574,6 +2574,7 @@ public class Bip9SoftFork public uint256 ChainWork { get; set; } public ulong SizeOnDisk { get; set; } public bool Pruned { get; set; } + public ulong PruneHeight { get; set; } [Obsolete] public List SoftForks { get; set; } From 5c955bfaf79a1d383a8cf3aeb16636df654467d2 Mon Sep 17 00:00:00 2001 From: Lucas Cullen Date: Mon, 17 Jun 2024 14:18:13 +1000 Subject: [PATCH 2/2] feat: Add PruneHeight property to RPCClient class --- NBitcoin/RPC/RPCClient.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/NBitcoin/RPC/RPCClient.cs b/NBitcoin/RPC/RPCClient.cs index 043dc7aee..d9836abab 100644 --- a/NBitcoin/RPC/RPCClient.cs +++ b/NBitcoin/RPC/RPCClient.cs @@ -1291,6 +1291,7 @@ public async Task GetBlockchainInfoAsync(CancellationToken cance ChainWork = new uint256(result.Value("chainwork")), SizeOnDisk = result.Value("size_on_disk") ?? 0, Pruned = result.Value("pruned"), + PruneHeight = result.Value("pruneheight") ?? 0, SoftForks = softForks, Bip9SoftForks = bip9SoftForks };