Use base65 instead of hex for BIP78 (#1985)

fixes #1984
This commit is contained in:
Andrew Camilleri
2020-10-14 12:01:21 +02:00
committed by GitHub
parent f2870caed2
commit e2eb26eb93

View File

@@ -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();