Optimize check_spend_remote HTLC a tad by avoiding indirections
authorMatt Corallo <git@bluematt.me>
Thu, 13 Sep 2018 15:34:26 +0000 (11:34 -0400)
committerMatt Corallo <git@bluematt.me>
Thu, 13 Sep 2018 18:05:08 +0000 (14:05 -0400)
commit27d5a3a94f9bac6d88f4ea364142d98a8ff2dc20
tree46bb5e780c5856ef08c04636b1c8a368a5d54cda
parent01c8e4f56fed86fdca842a03968741549b336bc1
Optimize check_spend_remote HTLC a tad by avoiding indirections

Instead of hopping a pointer, we're only ever going to return one
Transaction at max, so skip the Vec. Also avoid
re-pubkey-converting the revocation key.
src/ln/channelmonitor.rs