commit 2507585e1092e15eaa6740607054d4a02979ffd8 parent 336a868b01da99375931f08fa216419d2d561fc2 Author: William Casarin <jb55@jb55.com> Date: Wed, 2 Mar 2022 16:32:20 -0800 rpc: don't decode things we don't need Signed-off-by: William Casarin <jb55@jb55.com> Diffstat:
M | lightninglink/RPC.swift | | | 24 | +++++++++++------------- |
1 file changed, 11 insertions(+), 13 deletions(-)
diff --git a/lightninglink/RPC.swift b/lightninglink/RPC.swift @@ -27,25 +27,23 @@ public struct RpcErrorData: Decodable, CustomStringConvertible { } public struct Output: Decodable { - public var txid: String - public var output: Int + //public var txid: String + //public var output: Int public var value: Int64 - public var amount_msat: String - public var scriptpubkey: String - public var address: String - public var status: String - public var blockheight: Int - public var reserved: Bool + //public var amount_msat: String + //public var scriptpubkey: String + //public var address: String + //public var status: String + //public var blockheight: Int + //public var reserved: Bool } public struct Channel: Decodable { - public var peer_id: String - public var connected: Bool - public var state: String + //public var peer_id: String + //public var connected: Bool + //public var state: String public var channel_sat: Int64 public var channel_total_sat: Int64 - public var funding_txid: String - public var funding_output: Int } public struct ListFunds: Decodable {