Tweak transaction bumping `sign_tx` types for bindings
authorMatt Corallo <git@bluematt.me>
Tue, 18 Jul 2023 19:13:19 +0000 (19:13 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 20 Jul 2023 19:49:22 +0000 (19:49 +0000)
commitbe08b4f6b8ff3248710852f17760647f5b63ee24
treed7761eac66b9fec7fb6fc78c59de0165948bc41f
parent1e119a2d6a7d798a231a042c055e2d7e5e0fb73d
Tweak transaction bumping `sign_tx` types for bindings

In bindings we can't practically pass a mutable transaction, and
instead need to pass an owned transaction and have the sign method
return a signed copy. We do this here for all build modes as the
API is roughly equivalent also to Rust users.
lightning/src/events/bump_transaction.rs
lightning/src/util/test_utils.rs