Remove redundant hashmap lookups
authorViktor Tigerström <11711198+ViktorTigerstrom@users.noreply.github.com>
Thu, 12 Jan 2023 20:51:18 +0000 (21:51 +0100)
committerViktor Tigerström <11711198+ViktorTigerstrom@users.noreply.github.com>
Tue, 14 Feb 2023 14:03:26 +0000 (15:03 +0100)
commitb852df52769b85b92c54f6ef46ca8207cd1c67c4
tree8b17e7e4727b360ab3c2744a02ba9e75e35dae19
parent1a5482a8bbf56c66adb6a3f889c52ecf15fa8bb1
Remove redundant hashmap lookups

Avoid doing the same hashmap lookups twice in a row, when it's not
needed. Refactor `claim_funds_from_hop` in order to enable this change.
lightning/src/ln/channelmanager.rs