File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -2960,7 +2960,7 @@ where
29602960 };
29612961 let change_value_opt = calculate_change_output_value(
29622962 &self.funding_negotiation_context,
2963- None ,
2963+ shared_funding_input.as_ref().map(|input| input.local_owned()) ,
29642964 &shared_funding_output.script_pubkey,
29652965 &funding_outputs,
29662966 change_script.minimal_non_dust().to_sat(),
Original file line number Diff line number Diff line change @@ -1270,6 +1270,10 @@ impl SharedOwnedInput {
12701270 Self { input, prev_output, local_owned }
12711271 }
12721272
1273+ pub fn local_owned ( & self ) -> u64 {
1274+ self . local_owned
1275+ }
1276+
12731277 fn remote_owned ( & self ) -> u64 {
12741278 self . prev_output . value . to_sat ( ) . saturating_sub ( self . local_owned )
12751279 }
You can’t perform that action at this time.
0 commit comments