Skip to content
This repository has been archived by the owner on Oct 28, 2022. It is now read-only.

Commit

Permalink
Merge pull request #384 from horizontalsystems/fast_initial_sync
Browse files Browse the repository at this point in the history
Make insightApi parameters in outputs optional
  • Loading branch information
esen authored Jun 11, 2019
2 parents 3fb7e04 + 4e401c9 commit 63e3be4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BitcoinCore/BitcoinCore/Managers/InitialSync/InsightApi.swift
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ extension InsightApi: ISyncTransactionApi {

class InsightTransactionOutputItem: SyncTransactionOutputItem {
required init(map: Map) throws {
let script: String = try map.value("scriptPubKey.hex")
let address: [String] = try map.value("scriptPubKey.addresses")
let script: String = (try? map.value("scriptPubKey.hex")) ?? ""
let address: [String] = (try? map.value("scriptPubKey.addresses")) ?? []
super.init(script: script, address: address.joined())
}

Expand Down

0 comments on commit 63e3be4

Please sign in to comment.