Skip to content

Commit

Permalink
f Use OutputSpender for RegtestChannelManagerPersister.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
arik-so committed May 21, 2024
1 parent e36f0ac commit aac0bc7
Showing 1 changed file with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,12 @@ class RegtestChannelManagerPersister : Persister, ExtendedChannelManagerPersiste
let fastFeerate = 7500
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]

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

if let transaction = result.getValue() {
// sendEvent(eventName: MARKER_BROADCAST, eventBody: ["txhex": bytesToHex(bytes: transaction)])
}

return

Expand Down

0 comments on commit aac0bc7

Please sign in to comment.