From a1e8128ade1fbca5706d08c20920148432e415b0 Mon Sep 17 00:00:00 2001 From: jp1ac4 <121959000+jp1ac4@users.noreply.github.com> Date: Thu, 23 Nov 2023 18:21:36 +0000 Subject: [PATCH] rbf: use largest change output for change index --- src/commands/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/commands/mod.rs b/src/commands/mod.rs index 239b72acc..5ad739906 100644 --- a/src/commands/mod.rs +++ b/src/commands/mod.rs @@ -1048,7 +1048,9 @@ impl DaemonControl { let destinations: HashMap = prev_derivs .iter() .filter_map(|(addr, amt, deriv)| match deriv { - Some((ind, true)) if *ind == change_index.expect("change_index is some here") => None, + Some((ind, true)) if *ind == change_index.expect("change_index is some here") => { + None + } _ => Some((addr.clone(), *amt)), }) .collect();