Skip to content

Commit aac0bc7

Browse files
committed
f Use OutputSpender for RegtestChannelManagerPersister.swift
1 parent e36f0ac commit aac0bc7

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

xcode/LDKFramework/DirectlyLinkedBindingsApp/app-batteries/RegtestChannelManagerPersister.swift

+6-7
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,12 @@ class RegtestChannelManagerPersister : Persister, ExtendedChannelManagerPersiste
3030
let fastFeerate = 7500
3131
let destinationScriptHardcoded: [UInt8] = [118,169,20,25,18,157,83,230,49,155,175,25,219,160,89,190,173,22,109,249,10,184,245,136,172]
3232

33-
// guard let result = self.keysManager?.spendSpendableOutputs(descriptors: outputs, outputs: [], changeDestinationScript: destinationScriptHardcoded, feerateSatPer1000Weight: UInt32(fastFeerate), locktime: nil) else {
34-
// return
35-
// }
36-
//
37-
// if let transaction = result.getValue() {
38-
// // sendEvent(eventName: MARKER_BROADCAST, eventBody: ["txhex": bytesToHex(bytes: transaction)])
39-
// }
33+
let outputSpender = OutputSpender()
34+
let result = outputSpender.spendSpendableOutputs(descriptors: outputs, outputs: [], changeDestinationScript: destinationScriptHardcoded, feerateSatPer1000Weight: UInt32(fastFeerate), locktime: nil)
35+
36+
if let transaction = result.getValue() {
37+
// sendEvent(eventName: MARKER_BROADCAST, eventBody: ["txhex": bytesToHex(bytes: transaction)])
38+
}
4039

4140
return
4241

0 commit comments

Comments
 (0)