mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-02-23 15:14:49 +01:00
Update BC-UR bundle and support decoding hex format of wallet (#2505)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using BTCPayServer.Payments;
|
||||
using NBitcoin;
|
||||
using NBitcoin.DataEncoders;
|
||||
@@ -98,6 +99,10 @@ namespace BTCPayServer
|
||||
JObject jobj = null;
|
||||
try
|
||||
{
|
||||
if (HexEncoder.IsWellFormed(fileContents))
|
||||
{
|
||||
fileContents = Encoding.UTF8.GetString(Encoders.Hex.DecodeData(fileContents));
|
||||
}
|
||||
jobj = JObject.Parse(fileContents);
|
||||
}
|
||||
catch
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user