]> git.bitcoin.ninja Git - rust-lightning/commit
Pass `FailureCode` to `fail_htlc_backwards` by ownership 2023-02-no-enum-refs
authorMatt Corallo <git@bluematt.me>
Fri, 3 Mar 2023 01:24:24 +0000 (01:24 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 3 Mar 2023 17:20:58 +0000 (17:20 +0000)
commit0987b32bed4316626bd00f2902dc093f28ec55a1
tree11334d638d8047bdf23a89b07b5a8ae796d46f43
parent6ddf69c93b1c3e418251ed7a898efd943e47bc30
Pass `FailureCode` to `fail_htlc_backwards` by ownership

`FaliureCode` is a trivial enum with no body, so we shouldn't be
passing it by reference. Its sufficiently strange that the Java
bindings aren't happy with it, which is fine, we should just fix it
here.
lightning/src/ln/channelmanager.rs
lightning/src/ln/onion_route_tests.rs