From e2eb26eb93b9080654db03edf90541d7a7324e4b Mon Sep 17 00:00:00 2001 From: Andrew Camilleri Date: Wed, 14 Oct 2020 12:01:21 +0200 Subject: [PATCH] Use base65 instead of hex for BIP78 (#1985) fixes #1984 --- BTCPayServer/Services/PayjoinClient.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BTCPayServer/Services/PayjoinClient.cs b/BTCPayServer/Services/PayjoinClient.cs index e4793b725..b9d28c283 100644 --- a/BTCPayServer/Services/PayjoinClient.cs +++ b/BTCPayServer/Services/PayjoinClient.cs @@ -314,7 +314,7 @@ namespace BTCPayServer.Services using (HttpClient client = CreateHttpClient(endpoint)) { var bpuresponse = await client.PostAsync(endpoint, - new StringContent(originalTx.ToHex(), Encoding.UTF8, "text/plain"), cancellationToken); + new StringContent(originalTx.ToBase64(), Encoding.UTF8, "text/plain"), cancellationToken); if (!bpuresponse.IsSuccessStatusCode) { var errorStr = await bpuresponse.Content.ReadAsStringAsync();