@@ -17,7 +17,7 @@ enum BlockchainClientType: String, CaseIterable {
17
17
struct BlockchainClient {
18
18
let sync : @Sendable ( SyncRequest, UInt64) async throws -> Update
19
19
let fullScan : @Sendable ( FullScanRequest, UInt64, UInt64) async throws -> Update
20
- let broadcast : @Sendable ( Transaction) async throws -> Void
20
+ let broadcast : @Sendable ( Transaction) throws -> Void
21
21
let getUrl : @Sendable ( ) -> String
22
22
let getType : @Sendable ( ) -> BlockchainClientType
23
23
let supportsFullScan : @Sendable ( ) -> Bool = { true }
@@ -44,7 +44,7 @@ extension BlockchainClient {
44
44
static func kyoto( peer: String ) -> Self {
45
45
var cbfComponents : ( client: CbfClient , node: CbfNode ) ? = nil
46
46
47
- func getOrCreateComponents( ) async throws -> ( client: CbfClient , node: CbfNode ) {
47
+ func getOrCreateComponents( ) throws -> ( client: CbfClient , node: CbfNode ) {
48
48
if let existing = cbfComponents {
49
49
return existing
50
50
}
@@ -62,16 +62,16 @@ extension BlockchainClient {
62
62
63
63
return Self (
64
64
sync: { request, _ in
65
- let components = try await getOrCreateComponents ( )
65
+ let components = try getOrCreateComponents ( )
66
66
return try await components. client. update ( )
67
67
} ,
68
68
fullScan: { request, stopGap, _ in
69
- let components = try await getOrCreateComponents ( )
69
+ let components = try getOrCreateComponents ( )
70
70
return try await components. client. update ( )
71
71
} ,
72
72
broadcast: { tx in
73
- let components = try await getOrCreateComponents ( )
74
- try await components. client. broadcast ( transaction: tx)
73
+ let components = try getOrCreateComponents ( )
74
+ try components. client. broadcast ( transaction: tx)
75
75
} ,
76
76
getUrl: { peer } ,
77
77
getType: { . kyoto }
@@ -560,7 +560,7 @@ private class BDKService {
560
560
let isSigned = try wallet. sign ( psbt: psbt)
561
561
if isSigned {
562
562
let transaction = try psbt. extractTx ( )
563
- try await self . blockchainClient. broadcast ( transaction)
563
+ try self . blockchainClient. broadcast ( transaction)
564
564
} else {
565
565
throw WalletError . notSigned
566
566
}
0 commit comments