Make production work
MODIFY
WalletWasabi/BitcoinCore/Rpc/RpcClientBase.cs
WalletWasabi/BitcoinCore/Rpc/RpcClientBase.cs
@@ -147,7 +147,7 @@ namespace WalletWasabi.BitcoinCore.Rpc
public async Task<VerboseBlockInfo> GetVerboseBlockAsync(uint256 blockId)
{
var resp = await Rpc.SendCommandAsync(RPCOperations.getblock, blockId, 3).ConfigureAwait(false);
- return RpcParser.ParseVerboseBlockResponse(resp.Result.ToString());
+ return RpcParser.ParseVerboseBlockResponse(resp.ResultString);
}
public async Task<uint256[]> GenerateToAddressAsync(int nBlocks, BitcoinAddress address)

MODIFY
WalletWasabi/BitcoinCore/Rpc/RpcParser.cs
WalletWasabi/BitcoinCore/Rpc/RpcParser.cs
@@ -34,7 +34,12 @@ namespace WalletWasabi.BitcoinCore.Rpc
blockInfoJson = parsed;
}
- var previousBlockHash = blockInfoJson.GetProperty("previousblockhash").GetString();
+ string? previousBlockHash = null;
+ if (blockInfoJson.TryGetProperty("previousblockhash", out var prevBlockHashJson))
+ {
+ previousBlockHash = prevBlockHashJson.GetString();
+ }
+
var transaction = new List<VerboseTransactionInfo>();
var blockInfo = new VerboseBlockInfo(

Make production work