X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Futil%2Ftransaction_utils.rs;h=8ecd78acc482ccd5c35df234de9e4d00cab113ec;hb=12a55ae6fc0358808cd7ffaa64e498823f0b2f0c;hp=d597b775435d35b6a1d5b62cdeae605d27991153;hpb=6185a2819090bd077954244c5e2adaab5efcaa1a;p=rust-lightning diff --git a/src/util/transaction_utils.rs b/src/util/transaction_utils.rs index d597b775..8ecd78ac 100644 --- a/src/util/transaction_utils.rs +++ b/src/util/transaction_utils.rs @@ -8,9 +8,9 @@ pub fn sort_outputs(outputs: &mut Vec<(TxOut, T)>) { //TODO: Make static and Ordering::Less } else if b.0.value < a.0.value { Ordering::Greater - } else if a.0.script_pubkey[..] < b.0.script_pubkey[..] { //TODO: ordering of scripts shouldnt be len-based + } else if a.0.script_pubkey[..] < b.0.script_pubkey[..] { //TODO: ordering of scripts shouldn't be len-based Ordering::Less - } else if b.0.script_pubkey[..] < a.0.script_pubkey[..] { //TODO: ordering of scripts shouldnt be len-based + } else if b.0.script_pubkey[..] < a.0.script_pubkey[..] { //TODO: ordering of scripts shouldn't be len-based Ordering::Greater } else { Ordering::Equal